Sha256: 8bea748935aa42ef1b26b0ac14a84d4a29c6625ff45e4c8f8e1bcb797205dcfb

Contents?: true

Size: 141 Bytes

Versions: 82

Compression:

Stored size: 141 Bytes

Contents

module Agilibox::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

82 entries across 82 versions & 1 rubygems

Version Path
agilibox-2.0.0 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.11.0 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.10.5 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.10.2 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.10.1 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.10.0 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.20 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.19 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.18 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.17 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.16 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.15 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.14 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.13 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.12 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.11 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.10 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.9 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.8 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.9.7 app/models/concerns/agilibox/model_to_s.rb