Sha256: 2a924b6e3f14f9de17d648610c0dbf6dc8f86bddb6bd2ae2035536c03e18c5d9

Contents?: true

Size: 790 Bytes

Versions: 32

Compression:

Stored size: 790 Bytes

Contents

module RailsAdmin
  module Config
    module Actions
      class Show < RailsAdmin::Config::Actions::Base
        RailsAdmin::Config::Actions.register(self)

        register_instance_option :member do
          true
        end

        register_instance_option :route_fragment do
          ''
        end

        register_instance_option :breadcrumb_parent do
          [:index, bindings[:abstract_model]]
        end

        register_instance_option :controller do
          proc do
            respond_to do |format|
              format.json { render json: @object }
              format.html { render @action.template_name }
            end
          end
        end

        register_instance_option :link_icon do
          'icon-info-sign'
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
rails_admin-2.3.1 lib/rails_admin/config/actions/show.rb
rails_admin-2.3.0 lib/rails_admin/config/actions/show.rb
rails_admin-2.2.1 lib/rails_admin/config/actions/show.rb
rails_admin-2.2.0 lib/rails_admin/config/actions/show.rb
rails_admin-2.1.1 lib/rails_admin/config/actions/show.rb
rails_admin-2.1.0 lib/rails_admin/config/actions/show.rb
rails_admin-2.0.2 lib/rails_admin/config/actions/show.rb
rails_admin-1.4.3 lib/rails_admin/config/actions/show.rb
rails_admin-2.0.1 lib/rails_admin/config/actions/show.rb
rails_admin-2.0.0 lib/rails_admin/config/actions/show.rb
rails_admin-2.0.0.rc lib/rails_admin/config/actions/show.rb
rails_admin-2.0.0.beta lib/rails_admin/config/actions/show.rb
rails_admin-1.4.2 lib/rails_admin/config/actions/show.rb
rails_admin-1.4.1 lib/rails_admin/config/actions/show.rb
rails_admin-1.4.0 lib/rails_admin/config/actions/show.rb
rails_admin-1.3.0 lib/rails_admin/config/actions/show.rb
rails_admin-1.2.0 lib/rails_admin/config/actions/show.rb
rails_admin-1.1.1 lib/rails_admin/config/actions/show.rb
rails_admin-1.1.0 lib/rails_admin/config/actions/show.rb
rails_admin-1.0.0 lib/rails_admin/config/actions/show.rb