Module: WizardOfAwes::HelperAuth

Defined in:
lib/wizard_of_awes/helper_auth.rb

Instance Method Summary collapse

Instance Method Details

#woa_authorizeObject

Simple auth. When implementing some other form of authorization this method should return true if everything is great, or redirect user to some other page, thus denying access to cms admin section.



5
6
7
8
9
10
11
# File 'lib/wizard_of_awes/helper_auth.rb', line 5

def woa_authorize
  # If things are good...
  # true
  
  # If things are not good
  redirect_to(root_path)
end