Method: AttrJson::Model.attribute_types
- Defined in:
- lib/attr_json/model.rb
.attribute_types ⇒ Object
like the ActiveModel::Attributes method, hash with name keys, and ActiveModel::Type values
189 190 191 |
# File 'lib/attr_json/model.rb', line 189 def attribute_types attribute_names.collect { |name| [AttrJson.efficient_to_s(name), attr_json_registry.type_for_attribute(name)]}.to_h end |