Sha256: 7ea012196c9e3d811d25a438d10d4d97531ca9c4ff54cd685c59db62ee704f1b

Contents?: true

Size: 681 Bytes

Versions: 28

Compression:

Stored size: 681 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.columns = [:app_name, :api_key, :script_name]

    c.enable_extended_search = false

    c.data_store.sorters = {property: :app_name, direction: 'ASC'}
  end

  column :app_name do |c|
    c.flex = 1
  end

  column :api_key do |c|
    c.flex = 1
  end

  column :script_name do |c|
    c.flex = 1
  end
end

ApiAuthView = Marty::ApiAuthView

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
marty-0.5.41 app/components/marty/api_auth_view.rb
marty-0.5.40 app/components/marty/api_auth_view.rb
marty-0.5.39 app/components/marty/api_auth_view.rb
marty-0.5.38 app/components/marty/api_auth_view.rb
marty-0.5.36 app/components/marty/api_auth_view.rb
marty-0.5.35 app/components/marty/api_auth_view.rb
marty-0.5.34 app/components/marty/api_auth_view.rb
marty-0.5.33 app/components/marty/api_auth_view.rb
marty-0.5.32 app/components/marty/api_auth_view.rb
marty-0.5.31 app/components/marty/api_auth_view.rb
marty-0.5.30 app/components/marty/api_auth_view.rb
marty-0.5.29 app/components/marty/api_auth_view.rb
marty-0.5.28 app/components/marty/api_auth_view.rb
marty-0.5.27 app/components/marty/api_auth_view.rb
marty-0.5.26 app/components/marty/api_auth_view.rb
marty-0.5.25 app/components/marty/api_auth_view.rb
marty-0.5.24 app/components/marty/api_auth_view.rb
marty-0.5.23 app/components/marty/api_auth_view.rb
marty-0.5.21 app/components/marty/api_auth_view.rb
marty-0.5.20 app/components/marty/api_auth_view.rb