Sha256: 31ae5a1702340e0e6b58cdfaecbbf48eb66c9d5d139635e3ed8f40113f5f12fe
Contents?: true
Size: 561 Bytes
Versions: 2
Compression:
Stored size: 561 Bytes
Contents
module Warrant module App module Controllers module ApplicationController def self.included(controller) controller.class_eval do around_filter :use_current_user_for_activerecord protected def use_current_user_for_activerecord ActiveRecord::Base.current_user = current_user yield ActiveRecord::Base.current_user = nil end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gsterndale-warrant-0.2.0 | lib/warrant/app/controllers/application_controller.rb |
gsterndale-warrant-0.3.0 | lib/warrant/app/controllers/application_controller.rb |