Skip to content

Commit

Permalink
Hey look, it passes
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Dec 26, 2016
1 parent 3505845 commit 4529729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_model_serializers/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Model
# Configuration to avoid a breaking change with older versions of this class which lacked defined attributes.
# Previous behavior was: 1) initialized attributes were the
class_attribute :attributes_are_always_the_initialization_data, instance_writer: false, instance_reader: false
self.attributes_are_always_the_initialization_data = true
self.attributes_are_always_the_initialization_data = false # remove this commit, just for demonstration
module AttributesAreAlwaysTheInitializationData
def initialize(attributes = {})
@initialized_attributes = attributes && attributes.symbolize_keys
Expand Down

0 comments on commit 4529729

Please sign in to comment.