diff options
author | Bogdan Gusiev <agresso@gmail.com> | 2018-04-02 14:17:24 +0300 |
---|---|---|
committer | Bogdan Gusiev <agresso@gmail.com> | 2018-04-02 14:34:32 +0300 |
commit | 0d9f45ff99c092cce6b7642f653b8fdf9f930f0c (patch) | |
tree | 9d98aa6242dde4a480b2543961b6b8498b6233ab /activerecord/test/cases/attribute_methods | |
parent | 09b2348f7fc8d4e7191e70e06608c5909067e2aa (diff) | |
download | rails-0d9f45ff99c092cce6b7642f653b8fdf9f930f0c.tar.gz rails-0d9f45ff99c092cce6b7642f653b8fdf9f930f0c.tar.bz2 rails-0d9f45ff99c092cce6b7642f653b8fdf9f930f0c.zip |
Add AR::Base.base_class? predicate
Diffstat (limited to 'activerecord/test/cases/attribute_methods')
-rw-r--r-- | activerecord/test/cases/attribute_methods/read_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/attribute_methods/read_test.rb b/activerecord/test/cases/attribute_methods/read_test.rb index 0170a6e98d..54512068ee 100644 --- a/activerecord/test/cases/attribute_methods/read_test.rb +++ b/activerecord/test/cases/attribute_methods/read_test.rb @@ -12,7 +12,7 @@ module ActiveRecord def setup @klass = Class.new(Class.new { def self.initialize_generated_modules; end }) do def self.superclass; Base; end - def self.base_class; self; end + def self.base_class?; true; end def self.decorate_matching_attribute_types(*); end include ActiveRecord::DefineCallbacks |