Methods

Class/Module Index [+]

Quicksearch

Padrino::Contrib::Orm::ActiveRecord::Translate::InstanceMethods

Public Instance Methods

method_missing(method_name, *arguments) click to toggle source
# File lib/padrino-contrib/orm/active_record/translate.rb, line 32
def method_missing(method_name, *arguments)
  attribute = "#{method_name}_#{I18n.locale}".to_sym
  return self.send(attribute) if I18n.locale.present? && self.respond_to?(attribute)
  super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.