Class: Survey::PredefinedValue

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/survey/predefined_value.rb

Instance Method Summary collapse

Instance Method Details

#nameObject



20
21
22
# File 'app/models/survey/predefined_value.rb', line 20

def name
  I18n.locale == I18n.default_locale ? super : locale_name || super
end

#to_sObject



16
17
18
# File 'app/models/survey/predefined_value.rb', line 16

def to_s
  self.name
end