Sha256: 86d00ca0f8920ba131c95f23cc56e6c2274d0ba28a4a615599cbcc0982e6b634
Contents?: true
Size: 308 Bytes
Versions: 5
Compression:
Stored size: 308 Bytes
Contents
module Typus module Orm module Mongoid module InstanceMethods def update_attributes(attributes, options ={}) super(attributes) end def toggle(attribute) self[attribute] = !send("#{attribute}?") self end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems