Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Gardening

  • Loading branch information...
commit b182e7d57a5d4d8cd7a6e8423d155848a8d5d53b 1 parent f1166d6
Francesc Esplugas authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 app/controllers/typus_controller.rb
View
13 app/controllers/typus_controller.rb
@@ -90,7 +90,7 @@ def reset_password
session[:typus_user_id] = @typus_user.id
redirect_to admin_dashboard_path
else
- render :action => 'reset_password'
+ render :action => "reset_password"
end
end
end
@@ -101,7 +101,7 @@ def sign_up
if request.post?
- password = 'columbia'
+ password = "columbia"
user = Typus.user_class.generate(:email => params[:typus_user][:email],
:password => password,
@@ -131,8 +131,8 @@ def verify_typus_users_table_schema
attributes = Typus.user_class.model_fields.keys
- generator = if !attributes.include?(:role) then 'typus_update_schema_to_01'
- elsif !attributes.include?(:preferences) then 'typus_update_schema_to_02'
+ generator = if !attributes.include?(:role) then "typus_update_schema_to_01"
+ elsif !attributes.include?(:preferences) then "typus_update_schema_to_02"
end
if generator
@@ -146,7 +146,8 @@ def recover_password_disabled?
end
def select_layout
- %w( sign_up sign_in sign_out recover_password reset_password ).include?(action_name) ? 'typus' : 'admin'
+ %w( sign_up sign_in sign_out
+ recover_password reset_password ).include?(action_name) ? "typus" : "admin"
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.