Skip to content

Commit

Permalink
ensure will_paginate translations can be overriden by those of Rails app
Browse files Browse the repository at this point in the history
Fixes Rails plugin mode
  • Loading branch information
mislav committed Aug 5, 2011
1 parent fbb6f6b commit 1ee8ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/will_paginate/railtie.rb
Expand Up @@ -25,7 +25,7 @@ def self.setup_actioncontroller

def self.add_locale_path(config)
locale_path = File.expand_path('../locale', __FILE__)
config.i18n.railties_load_path.concat Dir["#{locale_path}/*.{rb,yml}"]
config.i18n.railties_load_path.unshift(*Dir["#{locale_path}/*.{rb,yml}"])
end
end
end

0 comments on commit 1ee8ecd

Please sign in to comment.