Sha256: d1d2cc8c7d6e8270177a7a02cf70935930d2d7de05c8b24df7eae730ac5f5d17
Contents?: true
Size: 402 Bytes
Versions: 3
Compression:
Stored size: 402 Bytes
Contents
# frozen_string_literal: true require 'active_record' require 'atomically/query_service' class ActiveRecord::Relation def atomically Atomically::QueryService.new(klass, relation: self) end end class ActiveRecord::Base def self.atomically Atomically::QueryService.new(self) end def atomically Atomically::QueryService.new(self.class, model: self) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
atomically-1.1.5 | lib/atomically/active_record/extension.rb |
atomically-1.1.4 | lib/atomically/active_record/extension.rb |
atomically-1.1.3 | lib/atomically/active_record/extension.rb |