app/controllers/concerns/rosetta/locale_scoped.rb in rosetta-rails-0.1.1 vs app/controllers/concerns/rosetta/locale_scoped.rb in rosetta-rails-0.2.0

- old
+ new

@@ -1,16 +1,15 @@ module Rosetta module LocaleScoped extend ActiveSupport::Concern included do - around_action :set_locale + before_action :set_locale end private def set_locale(&action) @locale = Locale.find(params[:locale_id]) - Rosetta.with_locale(@locale, &action) end end end