Method: Brief::Model::ClassMethods#content_schema_summary
- Defined in:
- lib/brief/model.rb
#content_schema_summary ⇒ Object
157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/brief/model.rb', line 157 def content_schema_summary base = definition.content_schema.attributes base.keys.inject({}) do |memo, key| val = base[key] args = Array(val[:args]) first = args.first memo[key] = first if first memo end end |