Module: Incline::Extensions::CurrentRequest
- Defined in:
- lib/incline/extensions/current_request.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/incline/extensions/current_request.rb', line 3 def self.included(base) base.class_eval do private def store_current_request ::Thread.current.thread_variable_set :incline_current_request, request end before_action :store_current_request end end |