diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-01-09 08:44:05 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-01-09 08:44:05 +0000 |
commit | 650c5f26ac0f55f69cbfc80a9d0dc08d32be7f22 (patch) | |
tree | 84a1f6d173663fe46abe17f8f92021d2da43d788 /config/environment.rb | |
parent | 7c6075ea10a95a4e74e85a07a55167558a2729a4 (diff) |
Ensure pagination works even on general search page
Diffstat (limited to 'config/environment.rb')
-rw-r--r-- | config/environment.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/environment.rb b/config/environment.rb index d15ee9a0e..17ded987e 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -131,6 +131,9 @@ I18n.locale = default_locale I18n.available_locales = available_locales.map {|locale_name| locale_name.to_sym} I18n.default_locale = default_locale +# Customise will_paginate URL generation +WillPaginate::ViewHelpers.pagination_options[:renderer] = 'WillPaginateExtension::LinkRenderer' + # Load monkey patches and other things from lib/ require 'ruby19.rb' require 'tmail_extensions.rb' @@ -139,7 +142,7 @@ require 'timezone_fixes.rb' require 'use_spans_for_errors.rb' require 'make_html_4_compliant.rb' require 'activerecord_errors_extensions.rb' -require 'willpaginate_hack.rb' +require 'willpaginate_extension.rb' require 'sendmail_return_path.rb' require 'tnef.rb' require 'i18n_fixes.rb' |