Sha256: 5bec4c8792a7c11f826b75c6a7d2b7d65447a311f7869c5434d92fa2c93d1776

Contents?: true

Size: 136 Bytes

Versions: 15

Compression:

Stored size: 136 Bytes

Contents

module BMC::ModelToS
  def to_s
    %w(name title label).map do |m|
      return send(m) if respond_to?(m)
    end

    super
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
bmc-1.4.3 app/models/concerns/bmc/model_to_s.rb
bmc-1.4.2 app/models/concerns/bmc/model_to_s.rb
bmc-1.4.1 app/models/concerns/bmc/model_to_s.rb
bmc-1.4.0 app/models/concerns/bmc/model_to_s.rb
bmc-1.3.5 app/models/concerns/bmc/model_to_s.rb
bmc-1.3.4 app/models/concerns/bmc/model_to_s.rb
bmc-1.3.3 app/models/concerns/bmc/model_to_s.rb
bmc-1.3.2 app/models/concerns/bmc/model_to_s.rb
bmc-1.3.1 app/models/concerns/bmc/model_to_s.rb
bmc-1.3.0 app/models/concerns/bmc/model_to_s.rb
bmc-1.2.1 app/models/concerns/bmc/model_to_s.rb
bmc-1.2.0 app/models/concerns/bmc/model_to_s.rb
bmc-1.1.0 app/models/concerns/bmc/model_to_s.rb
bmc-1.0.1 app/models/concerns/bmc/model_to_s.rb
bmc-1.0.0 app/models/concerns/bmc/model_to_s.rb