Sha256: 50664a88b04961a4409b283da096b7d9e075c5cdfd103039463a424860613523
Contents?: true
Size: 207 Bytes
Versions: 258
Compression:
Stored size: 207 Bytes
Contents
# the ever-useful to_label method class ActiveRecord::Base 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
258 entries across 258 versions & 8 rubygems