class ActiveRecord::Base

Public Class Methods

atomically() click to toggle source
# File lib/atomically/active_record/extension.rb, line 13
def self.atomically
  Atomically::QueryService.new(self)
end
from(value) click to toggle source
Calls superclass method
# File lib/atomically/patches/from.rb, line 6
def from(value) # For Rails 3
  value = "(#{value.to_sql}) subquery" if value.is_a?(ActiveRecord::Relation)
  return super
end
none() click to toggle source
# File lib/atomically/patches/none.rb, line 6
def none # For Rails 3
  where('1=0')
end

Public Instance Methods

atomically() click to toggle source
# File lib/atomically/active_record/extension.rb, line 17
def atomically
  Atomically::QueryService.new(self.class, model: self)
end