mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
Remove unnecessary arugment default
Default arguments increase complexity and should be avoided in most situations.
This commit is contained in:
parent
d5055ffdcc
commit
3a7421f8e8
1 changed files with 3 additions and 1 deletions
|
@ -1,13 +1,15 @@
|
|||
module PaperTrail
|
||||
module Queries
|
||||
module Versions
|
||||
# For public API documentation, see `where_object` in
|
||||
# `paper_trail/version_concern.rb`.
|
||||
# @api private
|
||||
class WhereObjectChanges
|
||||
# - version_model_class - The class that VersionConcern was mixed into.
|
||||
# - attributes - A `Hash` of attributes and values. See the public API
|
||||
# documentation for details.
|
||||
# @api private
|
||||
def initialize(version_model_class, attributes = {})
|
||||
def initialize(version_model_class, attributes)
|
||||
@version_model_class = version_model_class
|
||||
|
||||
# Currently, this `deep_dup` is necessary because the `jsonb` branch
|
||||
|
|
Loading…
Reference in a new issue