Method: AttrJson::Model#has_attribute?

Defined in:
lib/attr_json/model.rb

#has_attribute?(str) ⇒ Boolean

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



332
333
334
# File 'lib/attr_json/model.rb', line 332

def has_attribute?(str)
  self.class.attr_json_registry.has_attribute?(str)
end