diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-04 17:13:18 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-04 17:13:18 +0200 |
| commit | ac01156d00b24d14225c8e75979fb59bba69640d (patch) | |
| tree | f223b41358debb6cee45c5351d885505615b0e02 /config/initializers | |
| parent | 409d71ed471703be8c56f2639a3ecb0fa387e6a7 (diff) | |
Tidy up headings on house keeping views
- Collapse page headers into one action row with an optional hint
- limit will_paginate to one row
Diffstat (limited to 'config/initializers')
| -rw-r--r-- | config/initializers/will_paginate.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/initializers/will_paginate.rb b/config/initializers/will_paginate.rb new file mode 100644 index 00000000..55c6d6e6 --- /dev/null +++ b/config/initializers/will_paginate.rb | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | Rails.application.config.to_prepare do | ||
| 2 | WillPaginate::ViewHelpers.pagination_options[:inner_window] = 1 | ||
| 3 | WillPaginate::ViewHelpers.pagination_options[:outer_window] = 0 | ||
| 4 | end | ||
