Module: ActionInterceptor::ActionController

Defined in:
lib/action_interceptor/action_controller.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/action_interceptor/action_controller.rb', line 8

def self.included(base)
  base.class_attribute :is_interceptor, :use_interceptor,
                       :interceptor_filters
  base.is_interceptor = false
  base.use_interceptor = false
  base.interceptor_filters = {}

  base.before_filter :delete_intercepted_url

  base.helper_method :is_interceptor, :use_interceptor, :use_interceptor=,
                     :current_page?, :current_url, :current_url_hash, 

  base.extend(ClassMethods)
end

Instance Method Details

#_compute_redirect_to_location(options) ⇒ Object



23
24
25
# File 'lib/action_interceptor/action_controller.rb', line 23

def _compute_redirect_to_location(options)
  url_for(super)
end