Sha256: cb4b03ef767d27ee09f4e294de4994a9127f87939009e9d864067950fd2bcc86
Contents?: true
Size: 255 Bytes
Versions: 1
Compression:
Stored size: 255 Bytes
Contents
module ActsAsDowncasableOn module Core def acts_as_downcasable_on(*attributes) before_validation do attributes.each do |attribute| send(attribute).downcase! if send(attribute).present? end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_downcasable_on-0.1.0 | lib/acts_as_downcasable_on/core.rb |