Module: BackendTranslator
- Defined in:
- lib/backend_translator.rb,
lib/backend_translator/app.rb,
lib/backend_translator/version.rb,
lib/generators/backend_translator/install_generator.rb
Defined Under Namespace
Modules: Generators
Classes: App, Backend
Constant Summary
collapse
- DATABASES =
{
"development" => 0,
"test" => 1,
"production" => 2
}
- VERSION =
"0.0.1"
Class Method Summary
collapse
Class Method Details
.reload! ⇒ Object
16
17
18
19
|
# File 'lib/backend_translator.rb', line 16
def self.reload!
BackendTranslator.store.flushdb
I18n.backend.load_translations
end
|
.store ⇒ Object
12
13
14
|
# File 'lib/backend_translator.rb', line 12
def self.store
@store ||= Redis.new(:db => DATABASES[Rails.env.to_s])
end
|