Module: Users::Controllers::SingleFormBodyStyles

Defined in:
lib/users/controllers/single_form_body_styles.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/users/controllers/single_form_body_styles.rb', line 5

def self.included(base)
  base.class_eval do
    
    def set_standard_body_style
      @body_classes ||= []
      @body_classes.concat(%w(single_form))
    end
    
    def after_sign_out_path_for(resource)
      new_user_session_path
    end
    
    def (resource)
      # TODO class based redirect
      default_admin_path
    end
    
  end
end