Skip to content

Commit

Permalink
Fix Naming/MethodParameterName offenses
Browse files Browse the repository at this point in the history
Match AR's implementation
  • Loading branch information
tagliala committed Jan 23, 2024
1 parent 11a6c07 commit 6ca9036
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions .rubocop_todo.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions lib/hawk/model/querying.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ def default_params(params = nil)

# Adds +limit+ with the given number of records
#
def limit(n)
where(limit_param => n)
def limit(value)
where(limit_param => value)
end

# Adds an +offset+ with the given number of records
#
def offset(n)
where(offset_param => n)
def offset(value)
where(offset_param => value)
end

def order(by)
Expand Down

0 comments on commit 6ca9036

Please sign in to comment.