noodall-devise 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/user.rb +5 -0
- data/lib/noodall/devise/engine.rb +12 -0
- data/lib/noodall/devise/version.rb +1 -1
- metadata +9 -9
data/app/models/user.rb
CHANGED
@@ -4,6 +4,18 @@ module Noodall
|
|
4
4
|
initializer "set menu" do |app|
|
5
5
|
Noodall::UI.menu_items['Users'] = :admin_users_path
|
6
6
|
end
|
7
|
+
|
8
|
+
initializer "groups method" do |app|
|
9
|
+
ActiveSupport.on_load(:action_controller) do
|
10
|
+
include UserGroups
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
module UserGroups
|
16
|
+
def user_groups
|
17
|
+
User.groups
|
18
|
+
end
|
7
19
|
end
|
8
20
|
end
|
9
21
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
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-28 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
|
34
33
|
name: devise
|
35
34
|
prerelease: false
|
36
35
|
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
|
50
49
|
name: mm-devise
|
51
50
|
prerelease: false
|
52
51
|
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
|
66
65
|
name: bundler
|
67
66
|
prerelease: false
|
68
67
|
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.4.1
|
168
168
|
signing_key:
|
169
169
|
specification_version: 3
|
170
170
|
summary: "Noodall Devise: User sign in and managent with devise"
|