Sha256: 6f4e545f19e20fb96dd2186945c888abe9313309deaaad8b7b5b0e33136ed7d2

Contents?: true

Size: 294 Bytes

Versions: 27

Compression:

Stored size: 294 Bytes

Contents

module Locomotive
  module API
    module Helpers
      module LocalesHelper

        include Locomotive::Concerns::SiteDispatcherController

        def back_to_default_site_locale
          ::Mongoid::Fields::I18n.locale = current_site.default_locale
        end

      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
locomotivecms-3.4.1 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-4.0.0.alpha2 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-4.0.0.alpha1 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.4.0 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.3.0 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.3.0.rc3 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.3.0.rc2 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.1.2 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.2.1 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.3.0.rc1 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.2.0 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.2.0.rc2 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.2.0.rc1 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.1.1 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.1.0 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.1.0.rc3 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.1.0.rc2 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.1.0.rc1 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.0.1 app/api/locomotive/api/helpers/locales_helper.rb
locomotivecms-3.0.0 app/api/locomotive/api/helpers/locales_helper.rb