Fix Lint/UnusedMethodArgument

This commit is contained in:
Jared Beck 2016-02-15 20:31:10 -05:00
parent a6db0e25d6
commit 95a898bfc4
2 changed files with 3 additions and 8 deletions

View File

@ -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:

View File

@ -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