Sha256: 7145491a9545c90bdbc77a4d3fad8f00ea22dad0b7d0dc0a461d72cf7e056d23

Contents?: true

Size: 730 Bytes

Versions: 15

Compression:

Stored size: 730 Bytes

Contents

require 'rails_admin/config/sections/base'

module RailsAdmin
  module Config
    module Sections
      # Configuration of the list view
      class List < RailsAdmin::Config::Sections::Base
        register_instance_option :filters do
          []
        end

        # Number of items listed per page
        register_instance_option :items_per_page do
          RailsAdmin::Config.default_items_per_page
        end

        register_instance_option :sort_by do
          parent.abstract_model.primary_key
        end

        register_instance_option :sort_reverse? do
          true # By default show latest first
        end

        register_instance_option :scopes do
          []
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
rails_admin-1.1.1 lib/rails_admin/config/sections/list.rb
rails_admin-1.1.0 lib/rails_admin/config/sections/list.rb
rails_admin-1.0.0 lib/rails_admin/config/sections/list.rb
rails_admin-1.0.0.rc lib/rails_admin/config/sections/list.rb
rails_admin-0.8.1 lib/rails_admin/config/sections/list.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rails_admin-0.7.0/lib/rails_admin/config/sections/list.rb
rails_admin-0.7.0 lib/rails_admin/config/sections/list.rb
rails_admin-0.6.8 lib/rails_admin/config/sections/list.rb
rails_admin-0.6.7 lib/rails_admin/config/sections/list.rb
rails_admin-0.6.6 lib/rails_admin/config/sections/list.rb
rails_admin-0.6.5 lib/rails_admin/config/sections/list.rb
rails_admin-0.6.4 lib/rails_admin/config/sections/list.rb
rails_admin-0.6.3 lib/rails_admin/config/sections/list.rb
rails_admin-0.6.2 lib/rails_admin/config/sections/list.rb
rails_admin-0.6.1 lib/rails_admin/config/sections/list.rb