Sha256: ef9aad10a5d7b5d13b5bc52f28d51c2ded1a3c85c44aecd421a4f492ba11c752

Contents?: true

Size: 292 Bytes

Versions: 25

Compression:

Stored size: 292 Bytes

Contents

require 'jsonapi/operations_processor'

module JSONAPI
  class ActiveRecordOperationsProcessor < OperationsProcessor

    private
    def transaction
      ActiveRecord::Base.transaction do
        yield
      end
    end

    def rollback
      raise ActiveRecord::Rollback
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
jsonapi-resources-0.3.3 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.3.2 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.3.1 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.3.0 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.3.0.pre2 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.3.0.pre1 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.2.0 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.1.1 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.1.0 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.0.16 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.0.15 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.0.14 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.0.13 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.0.12 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.0.11 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.0.10 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.0.9 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.0.8 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.0.7 lib/jsonapi/active_record_operations_processor.rb
jsonapi-resources-0.0.6 lib/jsonapi/active_record_operations_processor.rb