Fix Lint/UnusedMethodArgument
This commit is contained in:
parent
a6db0e25d6
commit
95a898bfc4
|
@ -1,13 +1,6 @@
|
|||
# Remove these configuration records
|
||||
# one by one as the offenses are removed from the code base.
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
||||
Lint/UnusedMethodArgument:
|
||||
Exclude:
|
||||
- 'lib/paper_trail/has_paper_trail.rb'
|
||||
|
||||
# Offense count: 1
|
||||
Lint/UselessAccessModifier:
|
||||
Exclude:
|
||||
|
|
|
@ -211,7 +211,9 @@ module PaperTrail
|
|||
end
|
||||
|
||||
# Returns the objects (not Versions) as they were between the given times.
|
||||
def versions_between(start_time, end_time, reify_options={})
|
||||
# TODO: Either add support for the third argument, `_reify_options`, or
|
||||
# add a deprecation warning if someone tries to use it.
|
||||
def versions_between(start_time, end_time, _reify_options={})
|
||||
versions = send(self.class.versions_association_name).between(start_time, end_time)
|
||||
versions.collect { |version| version_at(version.send PaperTrail.timestamp_field) }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue