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.0.1 app/models/concerns/agilibox/model_to_s.rb
agilibox-1.0.0 app/models/concerns/agilibox/model_to_s.rb