Strong Parameters and Tolk Gem

To get the tolk gem to work along side the Strong Parameters gem we need to apply a monkey patch to tolk

config/initalizers/tolk.rb
1
2
3
4
5
6
Tolk::LocalesController.class_eval do
    def create
      Tolk::Locale.create!(params[:tolk_locale].try(:permit!))
      redirect_to :action => :index
    end
end