devise 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of devise might be problematic. Click here for more details.
- data/CHANGELOG.rdoc +5 -0
- data/lib/devise.rb +4 -4
- data/lib/devise/mapping.rb +1 -1
- data/lib/devise/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.rdoc
CHANGED
data/lib/devise.rb
CHANGED
@@ -8,10 +8,10 @@ module Devise
|
|
8
8
|
|
9
9
|
# Maps controller names to devise modules
|
10
10
|
CONTROLLERS = {
|
11
|
-
:sessions => :authenticatable,
|
12
|
-
:passwords => :recoverable,
|
13
|
-
:confirmations => :confirmable
|
14
|
-
}
|
11
|
+
:sessions => [:authenticatable],
|
12
|
+
:passwords => [:recoverable],
|
13
|
+
:confirmations => [:confirmable]
|
14
|
+
}
|
15
15
|
|
16
16
|
STRATEGIES = [:authenticatable]
|
17
17
|
SERIALIZERS = [:authenticatable, :rememberable]
|
data/lib/devise/mapping.rb
CHANGED
@@ -84,7 +84,7 @@ module Devise
|
|
84
84
|
|
85
85
|
# Check if the respective controller has a module in the mapping class.
|
86
86
|
def allows?(controller)
|
87
|
-
self.for
|
87
|
+
(self.for & CONTROLLERS[controller.to_sym]).present?
|
88
88
|
end
|
89
89
|
|
90
90
|
# Return in which position in the path prefix devise should find the as mapping.
|
data/lib/devise/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Jos\xC3\xA9 Valim"
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-12-
|
13
|
+
date: 2009-12-09 00:00:00 -02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|