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 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="Groups can categorise a user's ability when editing content, specified in content advanced options e.g. &quot;marketing,trusted,homepage editor&quot; or &quot;admin&quot;">&nbsp;</span>
31
+ <span class="tooltip" title="Add a user to a group, this will determine what tasks they can perform when managing content.">&nbsp;</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>
@@ -1,7 +1,7 @@
1
1
  module Noodall
2
2
  module Devise
3
3
  class Engine < Rails::Engine
4
- initializer "static assets" do |app|
4
+ initializer "set menu" do |app|
5
5
  Noodall::UI.menu_items['Users'] = :admin_users_path
6
6
  end
7
7
  end
@@ -1,5 +1,5 @@
1
1
  module Noodall
2
2
  module Devise
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
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: 31
5
- prerelease:
4
+ hash: 29
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
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-16 00:00:00 +00:00
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.4.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"