Module: BMC::ModelToS

Included in:
Email
Defined in:
app/models/concerns/bmc/model_to_s.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



2
3
4
5
6
7
8
# File 'app/models/concerns/bmc/model_to_s.rb', line 2

def to_s
  %w[name title label].map do |m|
    return send(m) if respond_to?(m)
  end

  super
end