Sha256: 9886159d87857b7ff92000bab8f6ef2c14e7c71d054f368be464492704029ea5
Contents?: true
Size: 472 Bytes
Versions: 19
Compression:
Stored size: 472 Bytes
Contents
module Puffer module Extensions module ActiveRecord module Base def call_chain chain swallow_nil{instance_eval(chain.to_s)} end def to_title send title_method end def title_method self.class.column_names.detect {|c| c =~ /name|title/} || self.class.column_names[1].to_sym end end end end end ActiveRecord::Base.send :include, Puffer::Extensions::ActiveRecord::Base
Version data entries
19 entries across 19 versions & 1 rubygems