Method: MasterApiKey::ApiKey#as_json

Defined in:
app/models/master_api_key/api_key.rb

#as_json(options = {}) ⇒ Object



6
7
8
# File 'app/models/master_api_key/api_key.rb', line 6

def as_json(options = {})
  super(options.reverse_merge({only: [:id, :api_token, :group, :read_access, :write_access]}))
end