bernat/best_in_place — pull request #255 by Knack (2013-03-16 07:59:37+00:00)
Title: Delay initialization of ViewHelpers in railtie

I have a Rails app with the default_locale set to spanish. After including your gem in my project, I noticed that text in views were rendered in english. After some debugging I found that the problem was in the gem's railtie, where you create a new instance of ActionView::Base. It seems that at that point locales were not properly initialized. Using config.after_initialize, as recommended in rails guides (http://guides.rubyonrails.org/configuring.html#rails-general-configuration), solves this.