Module: Plasticine
- Defined in:
- lib/plasticine.rb,
lib/plasticine/engine.rb,
lib/plasticine/railtie.rb,
lib/plasticine/base_visual.rb,
lib/plasticine/authentication.rb
Defined Under Namespace
Modules: Builder, Helpers
Classes: Authentication, BaseVisual, Engine, Railtie
Class Method Summary
collapse
Class Method Details
.localize(path, options = {}) ⇒ Object
2
3
4
5
6
7
8
|
# File 'lib/plasticine.rb', line 2
def self.localize(path, options={})
options.reverse_merge! format: :date_long
options[:format] = "plasticine_#{options[:format]}".to_sym
return I18n.localize(path, options)
end
|
.t(path, options = {}) ⇒ Object
14
15
16
|
# File 'lib/plasticine.rb', line 14
def self.t(path, options={})
self.translate path, options
end
|
.translate(path, options = {}) ⇒ Object
10
11
12
|
# File 'lib/plasticine.rb', line 10
def self.translate(path, options={})
I18n.translate("plasticine.#{path}", options)
end
|