aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/custom_reader.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/test/models/custom_reader.rb')
-rw-r--r--activemodel/test/models/custom_reader.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/test/models/custom_reader.rb b/activemodel/test/models/custom_reader.rb
index 14a8be9ebc..2fbcf79c3d 100644
--- a/activemodel/test/models/custom_reader.rb
+++ b/activemodel/test/models/custom_reader.rb
@@ -4,11 +4,11 @@ class CustomReader
def initialize(data = {})
@data = data
end
-
+
def []=(key, value)
@data[key] = value
end
-
+
def read_attribute_for_validation(key)
@data[key]
end