Sha256: b18965c4186f57ee08b068e0b0321dc0c24bf09ef1190546ab90540e2d1c399e
Contents?: true
Size: 239 Bytes
Versions: 20
Compression:
Stored size: 239 Bytes
Contents
module ActiveRecord module AttributeMethods def has_attribute?(attr_name) # CPK # @attributes.key?(attr_name.to_s) Array(attr_name).all?{|single_attr| @attributes.key?(single_attr.to_s) } end end end
Version data entries
20 entries across 20 versions & 1 rubygems