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

Version Path
typus-3.1.10 lib/typus/orm/mongoid/instance_methods.rb
typus-3.1.9 lib/typus/orm/mongoid/instance_methods.rb
typus-3.1.8 lib/typus/orm/mongoid/instance_methods.rb
typus-3.1.7 lib/typus/orm/mongoid/instance_methods.rb
typus-3.1.6 lib/typus/orm/mongoid/instance_methods.rb