noodall-devise 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/user.rb +11 -0
- data/app/views/admin/users/show.html.erb +1 -1
- data/lib/noodall/devise/engine.rb +1 -1
- data/lib/noodall/devise/version.rb +1 -1
- metadata +9 -9
data/app/models/user.rb
CHANGED
@@ -22,4 +22,15 @@ class User
|
|
22
22
|
tags.include?('admin')
|
23
23
|
end
|
24
24
|
|
25
|
+
# Make emails for login case insensitive
|
26
|
+
def self.find_for_authentication(conditions)
|
27
|
+
conditions[:email] = /^#{conditions[:email].strip}$/i
|
28
|
+
super(conditions)
|
29
|
+
end
|
30
|
+
|
31
|
+
protected
|
32
|
+
before_validation :clean_email
|
33
|
+
def clean_email
|
34
|
+
self.email = self.email.to_s.downcase.strip
|
35
|
+
end
|
25
36
|
end
|
@@ -28,7 +28,7 @@
|
|
28
28
|
</p>
|
29
29
|
|
30
30
|
<p>
|
31
|
-
<span class="tooltip" title="
|
31
|
+
<span class="tooltip" title="Add a user to a group, this will determine what tasks they can perform when managing content."> </span>
|
32
32
|
<%= f.label :group_list, "Permission Groups" %><br/>
|
33
33
|
<span class="input-wrap"><%= f.text_field :group_list %></span>
|
34
34
|
</p>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noodall-devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors: []
|
13
13
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01-
|
18
|
+
date: 2011-01-27 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -30,10 +30,10 @@ dependencies:
|
|
30
30
|
- 1
|
31
31
|
- 3
|
32
32
|
version: 1.1.3
|
33
|
+
type: :runtime
|
33
34
|
name: devise
|
34
35
|
prerelease: false
|
35
36
|
version_requirements: *id001
|
36
|
-
type: :runtime
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
@@ -46,10 +46,10 @@ dependencies:
|
|
46
46
|
- 1
|
47
47
|
- 6
|
48
48
|
version: 1.1.6
|
49
|
+
type: :runtime
|
49
50
|
name: mm-devise
|
50
51
|
prerelease: false
|
51
52
|
version_requirements: *id002
|
52
|
-
type: :runtime
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
requirement: &id003 !ruby/object:Gem::Requirement
|
55
55
|
none: false
|
@@ -62,10 +62,10 @@ dependencies:
|
|
62
62
|
- 0
|
63
63
|
- 0
|
64
64
|
version: 1.0.0
|
65
|
+
type: :development
|
65
66
|
name: bundler
|
66
67
|
prerelease: false
|
67
68
|
version_requirements: *id003
|
68
|
-
type: :development
|
69
69
|
description: User sign in and managent with devise. Provides administration of users in the admin area
|
70
70
|
email: []
|
71
71
|
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
requirements: []
|
165
165
|
|
166
166
|
rubyforge_project:
|
167
|
-
rubygems_version: 1.
|
167
|
+
rubygems_version: 1.3.7
|
168
168
|
signing_key:
|
169
169
|
specification_version: 3
|
170
170
|
summary: "Noodall Devise: User sign in and managent with devise"
|