Sha256: 41f78b37c04ad6feb38669b79151072ba9961f230c2c32af4ce3592d64c93105

Contents?: true

Size: 667 Bytes

Versions: 51

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

51 entries across 51 versions & 1 rubygems

Version Path
marty-14.3.0 app/components/marty/api_auth_view.rb
marty-14.0.0 app/components/marty/api_auth_view.rb
marty-13.0.2 app/components/marty/api_auth_view.rb
marty-11.0.0 app/components/marty/api_auth_view.rb
marty-10.0.3 app/components/marty/api_auth_view.rb
marty-10.0.2 app/components/marty/api_auth_view.rb
marty-10.0.0 app/components/marty/api_auth_view.rb
marty-9.5.1 app/components/marty/api_auth_view.rb
marty-9.5.0 app/components/marty/api_auth_view.rb
marty-9.3.3 app/components/marty/api_auth_view.rb
marty-9.3.2 app/components/marty/api_auth_view.rb
marty-9.3.0 app/components/marty/api_auth_view.rb
marty-8.5.0 app/components/marty/api_auth_view.rb
marty-8.4.1 app/components/marty/api_auth_view.rb
marty-8.3.1 app/components/marty/api_auth_view.rb
marty-8.2.0 app/components/marty/api_auth_view.rb
marty-8.0.0 app/components/marty/api_auth_view.rb
marty-6.1.0 app/components/marty/api_auth_view.rb
marty-5.2.0 app/components/marty/api_auth_view.rb
marty-5.1.4 app/components/marty/api_auth_view.rb