Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/atomically/active_record/extension.rb,
lib/atomically/patches/none.rb,
lib/atomically/patches/from.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.atomicallyObject



13
14
15
# File 'lib/atomically/active_record/extension.rb', line 13

def self.atomically
  Atomically::QueryService.new(self)
end

Instance Method Details

#atomicallyObject



17
18
19
# File 'lib/atomically/active_record/extension.rb', line 17

def atomically
  Atomically::QueryService.new(self.class, model: self)
end