Sha256: d4595f0ff88588c468b6bbad706ab5ad6c18b47da0976ce38eefcc79fa06300f
Contents?: true
Size: 667 Bytes
Versions: 110
Compression:
Stored size: 667 Bytes
Contents
class Marty::ApiAuthView < Marty::McflyGridPanel has_marty_permissions create: :admin, read: :any, update: :admin, delete: :admin def configure(c) super c.title = I18n.t('api_auth', default: "API Authorization") c.model = "Marty::ApiAuth" c.attributes = [:app_name, :api_key, :script_name] c.store_config.merge!({sorters: [{property: :app_name, direction: 'ASC'}]}) end attribute :app_name do |c| c.flex = 1 end attribute :api_key do |c| c.flex = 1 end attribute :script_name do |c| c.flex = 1 end end ApiAuthView = Marty::ApiAuthView
Version data entries
110 entries across 110 versions & 1 rubygems