Sha256: f127f34e2f0417cdd7c8370494dd2966d03e7f9de4eb2e5801040c3714f200c6
Contents?: true
Size: 280 Bytes
Versions: 1
Compression:
Stored size: 280 Bytes
Contents
module Rosetta module LocaleScoped extend ActiveSupport::Concern included do around_action :set_locale end private def set_locale(&action) @locale = Locale.find(params[:locale_id]) Rosetta.with_locale(@locale, &action) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rosetta-rails-0.1.1 | app/controllers/concerns/rosetta/locale_scoped.rb |