Sha256: f41d1a1d330ba1ff731d62f50e3a693eefb2f82958a04c99b35a32489c532047
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
module Rosetta class Configuration attr_reader :default_locale attr_accessor :parent_controller_class DefaultLocale = Struct.new(:name, :code) def initialize set_default_locale(name: "English", code: "en") @parent_controller_class = "ActionController::Base" end def set_default_locale(name:, code:) @default_locale = DefaultLocale.new(name, code) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rosetta-rails-0.1.1 | lib/rosetta/configuration.rb |