aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-02-06 15:52:16 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-02-06 15:52:16 -0800
commit3e0ecde2082f3b0ca07e7b28cdd4f9294a223442 (patch)
tree2c7b4bc99816dfd178c523f75d19081fea5a6551 /activerecord/lib/active_record/attribute_methods
parent5dec3dd59c9f4b5c881860b0f629c8d6b3706f90 (diff)
downloadrails-3e0ecde2082f3b0ca07e7b28cdd4f9294a223442.tar.gz
rails-3e0ecde2082f3b0ca07e7b28cdd4f9294a223442.tar.bz2
rails-3e0ecde2082f3b0ca07e7b28cdd4f9294a223442.zip
adding a comment for myself
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods')
-rw-r--r--activerecord/lib/active_record/attribute_methods/write.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/write.rb b/activerecord/lib/active_record/attribute_methods/write.rb
index 310cd90433..6b0230384b 100644
--- a/activerecord/lib/active_record/attribute_methods/write.rb
+++ b/activerecord/lib/active_record/attribute_methods/write.rb
@@ -37,16 +37,16 @@ module ActiveRecord
alias_method :raw_write_attribute, :write_attribute
private
- # Handle *= for method_missing.
- def attribute=(attribute_name, value)
- write_attribute(attribute_name, value)
- end
+ # Handle *= for method_missing.
+ def attribute=(attribute_name, value)
+ write_attribute(attribute_name, value)
+ end
- def type_cast_attribute_for_write(column, value)
- return value unless column
+ def type_cast_attribute_for_write(column, value)
+ return value unless column
- column.type_cast_for_write value
- end
+ column.type_cast_for_write value
+ end
end
end
end