Module: Adminka::Staff
- Included in:
- ApplicationHelper, CrudController
- Defined in:
- lib/adminka/staff.rb
Instance Method Summary collapse
Instance Method Details
#select_fields(type) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/adminka/staff.rb', line 3 def select_fields(type) if @config['attributes'][type].is_a?(Hash) @config['attributes'][type].keys | ['id'] else @config['attributes'][type] | ['id'] end end |