Sha256: 2925bf3e5c44a566e4a48efa97465e5df1fb6fe6b19c4a3b7a8b9a621c41118d

Contents?: true

Size: 209 Bytes

Versions: 3

Compression:

Stored size: 209 Bytes

Contents

class Interpret::BaseController < eval(Interpret.controller.classify)
  before_filter :set_locale
  layout 'interpret'

private
  def set_locale
    I18n.locale = params[:locale] if params[:locale]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
interpret-0.1.3 app/controllers/interpret/base_controller.rb
interpret-0.1.2 app/controllers/interpret/base_controller.rb
interpret-0.1.1 app/controllers/interpret/base_controller.rb