Class: ActionController::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/extensions/action_controller/base.rb

Class Method Summary collapse

Class Method Details

.require_user(options = {}) ⇒ Object

Raises:

  • (Exception)


2
3
4
5
# File 'lib/extensions/action_controller/base.rb', line 2

def self.require_user(options = {})
  raise Exception, "require_user cannot be called on ActionController::Base. Only it's subclasses" if self ==  ActionController::Base
  prepend_before_filter :require_user, options
end