Navigation Menu

Skip to content

Commit

Permalink
enable access to ViewHelpers.pagination_options for Rails initializers
Browse files Browse the repository at this point in the history
closes mislav#165
  • Loading branch information
mislav committed Aug 23, 2011
1 parent dc588e6 commit be12b56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/will_paginate/railtie.rb
Expand Up @@ -19,6 +19,9 @@ class Railtie < Rails::Railtie
end

self.class.add_locale_path config

# early access to ViewHelpers.pagination_options
require 'will_paginate/view_helpers'
end

def self.setup_actioncontroller
Expand Down

0 comments on commit be12b56

Please sign in to comment.