module Adminka::Staff

Public Instance Methods

select_fields(type) click to toggle source
# 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