module ActsAsLocalized::ClassMethods
Public Instance Methods
acts_as_localized(*attributes)
click to toggle source
# File lib/acts_as_localized.rb, line 12 def acts_as_localized *attributes attributes.each do |attribute| define_method attribute do send("#{attribute}_#{I18n.locale}") end define_method "#{attribute}=" do |value| send("#{attribute}_#{I18n.locale}=", value) end end end