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

Version Path
marty-2.5.2 app/components/marty/api_auth_view.rb
marty-2.5.1 app/components/marty/api_auth_view.rb
marty-2.5.0 app/components/marty/api_auth_view.rb
marty-2.4.9 app/components/marty/api_auth_view.rb
marty-2.4.8 app/components/marty/api_auth_view.rb
marty-2.4.7 app/components/marty/api_auth_view.rb
marty-2.4.6 app/components/marty/api_auth_view.rb
marty-2.4.5 app/components/marty/api_auth_view.rb
marty-2.4.4 app/components/marty/api_auth_view.rb
marty-2.4.3 app/components/marty/api_auth_view.rb
marty-2.4.2 app/components/marty/api_auth_view.rb
marty-2.4.1 app/components/marty/api_auth_view.rb
marty-2.3.15 app/components/marty/api_auth_view.rb
marty-2.3.14 app/components/marty/api_auth_view.rb
marty-2.3.13 app/components/marty/api_auth_view.rb
marty-2.3.12 app/components/marty/api_auth_view.rb
marty-2.3.11 app/components/marty/api_auth_view.rb
marty-2.3.10 app/components/marty/api_auth_view.rb
marty-2.3.9 app/components/marty/api_auth_view.rb
marty-2.3.8 app/components/marty/api_auth_view.rb