Sha256: dab1fefbb0d6f5590b8161d62624dc80462068e1fa6525ef2b898519ad24e1b5

Contents?: true

Size: 242 Bytes

Versions: 1

Compression:

Stored size: 242 Bytes

Contents

module DataMapper
  module NestedAttributes
    
    module TransactionalSave
      
      def save(*args)
        saved = false
        transaction { |t| t.rollback unless saved = super }
        saved
      end
      
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snusnu-dm-accepts_nested_attributes-0.10.0 lib/dm-accepts_nested_attributes/transactional_save.rb