Module: Plutonium::Resource::Record::Labeling
- Included in:
- Plutonium::Resource::Record
- Defined in:
- lib/plutonium/resource/record/labeling.rb
Instance Method Summary collapse
Instance Method Details
#to_label ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/plutonium/resource/record/labeling.rb', line 8 def to_label i[name title].each do |method| name = send(method) if respond_to?(method) return name if name.present? end "#{model_name.human} ##{to_param}" end |