Module: Clearance::App::Controllers::UsersController

Defined in:
lib/clearance/app/controllers/users_controller.rb

Defined Under Namespace

Modules: Actions, PrivateMethods

Class Method Summary collapse

Class Method Details

.included(controller) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/clearance/app/controllers/users_controller.rb', line 6

def self.included(controller)
  controller.send(:include, Actions)
  controller.send(:include, PrivateMethods)

  controller.class_eval do
    before_filter :redirect_to_root, :only => [:new, :create], :if => :signed_in?
    filter_parameter_logging :password
  end
end