We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e1849c commit 085ba53Copy full SHA for 085ba53
lib/active_model_serializers/model.rb
@@ -9,7 +9,7 @@ class Model
9
# Configuration to avoid a breaking change with older versions of this class which lacked defined attributes.
10
# Previous behavior was: 1) initialized attributes were the
11
class_attribute :attributes_are_always_the_initialization_data, instance_writer: false, instance_reader: false
12
- self.attributes_are_always_the_initialization_data = true
+ self.attributes_are_always_the_initialization_data = false # remove this commit, just for demonstration
13
module AttributesAreAlwaysTheInitializationData
14
def initialize(attributes = {})
15
@initialized_attributes = attributes && attributes.symbolize_keys
0 commit comments