Sha256: 2f2c449c55e0c25b044325d2d9df45baaadeb5dae55a79c1ab2843be28455030

Contents?: true

Size: 540 Bytes

Versions: 11

Compression:

Stored size: 540 Bytes

Contents

module Plasticine
  def self.localize(path, options={})
    options.reverse_merge! format: :date_long

    options[:format] = "plasticine_#{options[:format]}".to_sym

    return I18n.localize(path, options)
  end

  def self.translate(path, options={})
    I18n.translate("plasticine.#{path}", options)
  end

  def self.t(path, options={})
    self.translate path, options
  end
end

require "plasticine/authentication"
require "plasticine/base_visual"
require "plasticine/builder"
require "plasticine/engine"
require "plasticine/railtie"

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
plasticine-1.2.8 lib/plasticine.rb
plasticine-1.2.7 lib/plasticine.rb
plasticine-1.2.6 lib/plasticine.rb
plasticine-1.2.5 lib/plasticine.rb
plasticine-1.2.4 lib/plasticine.rb
plasticine-1.2.3 lib/plasticine.rb
plasticine-1.2.2 lib/plasticine.rb
plasticine-1.2.1 lib/plasticine.rb
plasticine-1.2.0 lib/plasticine.rb
plasticine-1.1.1 lib/plasticine.rb
plasticine-1.1.0 lib/plasticine.rb