Sha256: bba0c2d9e2a612e55cebd6a042de54654d9445e923fe2e962427f0ebf040ac94

Contents?: true

Size: 660 Bytes

Versions: 24

Compression:

Stored size: 660 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
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
rails_admin-0.6.0 lib/rails_admin/config/sections/list.rb
rails_admin-0.5.0 lib/rails_admin/config/sections/list.rb
rails_admin-0.4.9 lib/rails_admin/config/sections/list.rb
rails_admin-0.4.8 lib/rails_admin/config/sections/list.rb
rails_admin-0.4.7 lib/rails_admin/config/sections/list.rb
rails_admin-0.4.6 lib/rails_admin/config/sections/list.rb
rails_admin-0.4.5 lib/rails_admin/config/sections/list.rb
rails_admin-0.4.4 lib/rails_admin/config/sections/list.rb
rails_admin-lbgraham-0.4.2 lib/rails_admin/config/sections/list.rb
rails_admin-0.4.3 lib/rails_admin/config/sections/list.rb
rails_admin-0.4.2 lib/rails_admin/config/sections/list.rb
rails_admin-0.4.1 lib/rails_admin/config/sections/list.rb
rails_admin-0.4.0 lib/rails_admin/config/sections/list.rb
rails_admin-0.3.0 lib/rails_admin/config/sections/list.rb
rails_admin-0.2.0 lib/rails_admin/config/sections/list.rb
rails_admin-0.1.2 lib/rails_admin/config/sections/list.rb
rails_admin-0.1.1 lib/rails_admin/config/sections/list.rb
rails_admin-0.1.0 lib/rails_admin/config/sections/list.rb
rails_admin-0.0.5 lib/rails_admin/config/sections/list.rb
rails_admin-0.0.4 lib/rails_admin/config/sections/list.rb