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[:login], params[:password])
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."
metadata CHANGED
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 4
8
- version: "0.4"
7
+ - 5
8
+ version: "0.5"
9
9
  platform: ruby
10
10
  authors:
11
11
  - Seivan Heidari