Method: AttrJson::Model#type_for_attribute

Defined in:
lib/attr_json/model.rb

#type_for_attribute(attr_name) ⇒ Object

This attribute from ActiveRecord makes SimpleForm happy, and able to detect type.



326
327
328
# File 'lib/attr_json/model.rb', line 326

def type_for_attribute(attr_name)
  self.class.attr_json_registry.type_for_attribute(attr_name)
end