Sha256: 237379aa2b6386ec7ccdc743f258643253892726f77b03c268a385799cd76f12
Contents?: true
Size: 465 Bytes
Versions: 1
Compression:
Stored size: 465 Bytes
Contents
module ActiveData module Model module Localization extend ActiveSupport::Concern module ClassMethods def localized *args, &block add_attribute(ActiveData::Model::Attributes::Reflections::Localized, *args, &block) end def fallbacks locale ::I18n.respond_to?(:fallbacks) ? ::I18n.fallbacks[locale] : [locale] end def locale I18n.locale end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_data-1.0.0 | lib/active_data/model/localization.rb |