module RailsSetLocale

All the functionality of this gem will be exposed using this module here.

Constants

VERSION

Public Class Methods

included(base) click to toggle source
# File lib/rails_set_locale.rb, line 11
def self.included(base)
  base.before_action :set_locale
  base.include HttpAcceptLanguage::EasyAccess unless base.included_modules.include?(HttpAcceptLanguage::EasyAccess)
  base.include InstanceMethods
end