class method
self.abstract_class?
Ruby on Rails 3.1.12
Since v2.2.3 Last seen in v3.1.12Signature
self.abstract_class?()
Returns whether this class is an abstract class or not.
Source
# File activerecord/lib/active_record/base.rb, line 886
def abstract_class?
defined?(@abstract_class) && @abstract_class == true
end
Defined in activerecord/lib/active_record/base.rb line 886
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Base