devise 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,8 @@
1
+ == 0.7.1
2
+
3
+ * enhancements
4
+ * Small enhancements for other plugins compatibility (by github.com/grimen)
5
+
1
6
  == 0.7.0
2
7
 
3
8
  * deprecations
@@ -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
- }.freeze
11
+ :sessions => [:authenticatable],
12
+ :passwords => [:recoverable],
13
+ :confirmations => [:confirmable]
14
+ }
15
15
 
16
16
  STRATEGIES = [:authenticatable]
17
17
  SERIALIZERS = [:authenticatable, :rememberable]
@@ -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.include?(CONTROLLERS[controller.to_sym])
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.
@@ -1,3 +1,3 @@
1
1
  module Devise
2
- VERSION = "0.7.0".freeze
2
+ VERSION = "0.7.1".freeze
3
3
  end
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.0
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-08 00:00:00 -02:00
13
+ date: 2009-12-09 00:00:00 -02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency