seivan-generators 0.4 → 0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,7 @@ class <%= session_plural_class_name %>Controller < ApplicationController
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def create
|
28
|
-
<%= user_singular_name %> = <%= user_class_name %>.authenticate(params
|
28
|
+
<%= user_singular_name %> = <%= user_class_name %>.authenticate(params)
|
29
29
|
if <%= user_singular_name %>
|
30
30
|
session[:<%= user_singular_name %>_id] = <%= user_singular_name %>.id
|
31
31
|
flash[:notice] = "Logged in successfully."
|