Skip to content
Newer
Older
100644 32 lines (26 sloc) 730 Bytes
dd8b156 @bbenezech WIP: dsl refactoring
bbenezech authored Dec 7, 2011
1 require 'rails_admin/config/sections/base'
ef9b182 @kaapa Organize config DSL classes into separate files
kaapa authored Dec 9, 2010
2
3 module RailsAdmin
4 module Config
5 module Sections
6 # Configuration of the list view
dd8b156 @bbenezech WIP: dsl refactoring
bbenezech authored Dec 7, 2011
7 class List < RailsAdmin::Config::Sections::Base
0f752a0 @bbenezech Add base filters for list view
bbenezech authored Aug 2, 2011
8 register_instance_option :filters do
9 []
10 end
ef9b182 @kaapa Organize config DSL classes into separate files
kaapa authored Dec 9, 2010
11
12 # Number of items listed per page
ce3e56e @bbenezech removed deprecations and unused section navigation
bbenezech authored Nov 30, 2011
13 register_instance_option :items_per_page do
42aba16 @kaapa Initial work on more thorough config reset, refs #275, #289, #515
kaapa authored Jul 11, 2011
14 RailsAdmin::Config.default_items_per_page
ef9b182 @kaapa Organize config DSL classes into separate files
kaapa authored Dec 9, 2010
15 end
cc9c2fb @kaapa Remove trailing whitespace
kaapa authored Jul 4, 2011
16
ce3e56e @bbenezech removed deprecations and unused section navigation
bbenezech authored Nov 30, 2011
17 register_instance_option :sort_by do
76c6c10 @mshibuya Fix Mongoid sorting problem
mshibuya authored Mar 18, 2012
18 parent.abstract_model.primary_key
9e72427 @kryzhovnik Default sorting: sort_by and sort_reverse options for list section
kryzhovnik authored Jan 28, 2011
19 end
cc9c2fb @kaapa Remove trailing whitespace
kaapa authored Jul 3, 2011
20
ce3e56e @bbenezech removed deprecations and unused section navigation
bbenezech authored Nov 30, 2011
21 register_instance_option :sort_reverse? do
9e72427 @kryzhovnik Default sorting: sort_by and sort_reverse options for list section
kryzhovnik authored Jan 28, 2011
22 true # By default show latest first
23 end
deea8c1 @glebtv Show a configurable list of model scopes in list view
glebtv authored Dec 10, 2013
24
25 register_instance_option :scopes do
26 []
27 end
ef9b182 @kaapa Organize config DSL classes into separate files
kaapa authored Dec 9, 2010
28 end
29 end
30 end
9e72427 @kryzhovnik Default sorting: sort_by and sort_reverse options for list section
kryzhovnik authored Jan 28, 2011
31 end
Something went wrong with that request. Please try again.