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.5.8 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.5.7 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.5.6 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.5.5 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.5.4 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.5.3 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.5.2 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.5.1 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.5.0 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.4.4 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.4.3 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.4.2 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.4.1 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.4.0 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.3.6 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.3.5 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.3.4 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.3.3 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.3.2 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.3.1 app/models/concerns/agilibox/model_to_s.rb