1
0
Fork 0
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:
Jared Beck 2016-12-13 18:21:45 -05:00
parent d5055ffdcc
commit 3a7421f8e8

View file

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