module Traits::Attribute::Inheritance
Public Instance Methods
inheritance_type?()
click to toggle source
# File lib/traits/attribute/inheritance.rb, line 7 def inheritance_type? (model.inheritance_base? || model.inheritance_derived?) and name == model.inheritance_attribute.name end
to_hash()
click to toggle source
Calls superclass method
# File lib/traits/attribute/inheritance.rb, line 11 def to_hash super.merge!(is_inheritance_type: inheritance_type?) end