Sha256: 2a2e4f87a40a1797c8e4f117eb99b3341fe1740a7710fc3da5e1ce4aab718f2e
Contents?: true
Size: 202 Bytes
Versions: 10
Compression:
Stored size: 202 Bytes
Contents
# the ever-useful to_label method class Sequel::Model def to_label [:name, :label, :title, :to_s].each do |attribute| return send(attribute).to_s if respond_to?(attribute) end end end
Version data entries
10 entries across 10 versions & 1 rubygems