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-1.3.0 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.2.3 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.2.2 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.2.1 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.2.0 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.1.0 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.15 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.14 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.13 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.12 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.11 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.10 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.9 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.8 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.7 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.6 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.5 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.4 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.3 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.2 app/models/concerns/agilibox/model_to_s.rb