Method: AttrJson::Type::PolymorphicModel#type
- Defined in:
- lib/attr_json/type/polymorphic_model.rb
#type ⇒ Object
ActiveModel method, symbol type label
100 101 102 |
# File 'lib/attr_json/type/polymorphic_model.rb', line 100 def type @type ||= "any_of_#{model_types.collect(&:type).collect(&:to_s).join('_')}".to_sym end |