diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-02 17:11:35 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-07-02 17:11:35 -0700 |
commit | 8eb7561ac6e8f020ec09608532de310c6b0b8dcd (patch) | |
tree | 18ff18cf84448450653f6ef3f41641cffab012f5 /activerecord/lib | |
parent | 9f76531c3a7a6ff32515d2238cf26dbd772467d7 (diff) | |
download | rails-8eb7561ac6e8f020ec09608532de310c6b0b8dcd.tar.gz rails-8eb7561ac6e8f020ec09608532de310c6b0b8dcd.tar.bz2 rails-8eb7561ac6e8f020ec09608532de310c6b0b8dcd.zip |
initialize generated modules on inclusion and on inheritence
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb index abaa820ac5..701fd4e3fa 100644 --- a/activerecord/lib/active_record/attribute_methods.rb +++ b/activerecord/lib/active_record/attribute_methods.rb @@ -8,7 +8,7 @@ module ActiveRecord include ActiveModel::AttributeMethods included do - @attribute_methods_generated = false + initialize_generated_modules include Read include Write include BeforeTypeCast |