Sha256: d9656932c2943453caa32fc01145e21905a8a112167ab6d1485e87dd16ca975d
Contents?: true
Size: 314 Bytes
Versions: 2
Compression:
Stored size: 314 Bytes
Contents
class Translation include Mongoid::Document after_save do I18n.backend.reload! end store_in collection: "i18n" # scope :default, ->{ order_by(locale: :asc, key: :asc) } field :key, type: String field :value, type: String, localize: true validates :key, presence: true, uniqueness: true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
venomi-0.0.2 | lib/generators/templates/translation.rb |
venomi-0.0.1 | lib/generators/templates/translation.rb |