diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 463b837..7b317fc 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -71,12 +71,6 @@ Naming/MemoizedInstanceVariableName: Exclude: - 'lib/hawk/model/proxy.rb' -# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. -# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to -Naming/MethodParameterName: - Exclude: - - 'lib/hawk/model/querying.rb' - # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros. # NamePrefix: is_, has_, have_ # ForbiddenPrefixes: is_, has_, have_ diff --git a/lib/hawk/model/querying.rb b/lib/hawk/model/querying.rb index 758dd1e..8ae6d48 100644 --- a/lib/hawk/model/querying.rb +++ b/lib/hawk/model/querying.rb @@ -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)