diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-12-15 20:21:05 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-12-15 20:45:42 +0000 |
commit | 17ad71e5141eaa79bfb4aedc2f3a5b4abfa0baba (patch) | |
tree | 5f1fe36db9945b7d4bb3c59eb4ac80e8de0428fb /activerecord/test/cases | |
parent | ceb33f84933639d3b61aac62e5e71fd087ab65ed (diff) | |
download | rails-17ad71e5141eaa79bfb4aedc2f3a5b4abfa0baba.tar.gz rails-17ad71e5141eaa79bfb4aedc2f3a5b4abfa0baba.tar.bz2 rails-17ad71e5141eaa79bfb4aedc2f3a5b4abfa0baba.zip |
Let AttributeMethods do its own including etc
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/attribute_methods/read_test.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/activerecord/test/cases/attribute_methods/read_test.rb b/activerecord/test/cases/attribute_methods/read_test.rb index e03ed33591..86a240d93c 100644 --- a/activerecord/test/cases/attribute_methods/read_test.rb +++ b/activerecord/test/cases/attribute_methods/read_test.rb @@ -14,8 +14,9 @@ module ActiveRecord def setup @klass = Class.new do + def self.base_class; self; end + include ActiveRecord::AttributeMethods - include ActiveRecord::AttributeMethods::Read def self.column_names %w{ one two three } @@ -33,9 +34,6 @@ module ActiveRecord [name, FakeColumn.new(name)] }] end - - def self.serialized_attributes; {}; end - def self.base_class; self; end end end |