module Dicer::ActiveRecord
Public Class Methods
instantiate_with_dicer(*args)
click to toggle source
# File lib/dicer/railtie/active_record.rb, line 15 def self.instantiate_with_dicer(*args) if Dicer.config.auto_supply && Dicer::Context.current.present? instantiate_without_dicer(*args).in_context else instantiate_without_dicer(*args) end end
new_with_dicer(*args, &block)
click to toggle source
# File lib/dicer/railtie/active_record.rb, line 7 def self.new_with_dicer(*args, &block) if Dicer.config.auto_supply && Dicer::Context.current.present? new_without_dicer(*args, &block).in_context else new_without_dicer(*args, &block) end end