mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 23:38:10 -05:00
More tweaks for plugin compatibility.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
== 0.7.1
|
||||
|
||||
* enhancements
|
||||
* Small enhancements for other plugins compatibility (by github.com/grimen)
|
||||
|
||||
== 0.7.0
|
||||
|
||||
* deprecations
|
||||
|
||||
@@ -8,9 +8,9 @@ module Devise
|
||||
|
||||
# Maps controller names to devise modules
|
||||
CONTROLLERS = {
|
||||
:sessions => :authenticatable,
|
||||
:passwords => :recoverable,
|
||||
:confirmations => :confirmable
|
||||
:sessions => [:authenticatable],
|
||||
:passwords => [:recoverable],
|
||||
:confirmations => [:confirmable]
|
||||
}.freeze
|
||||
|
||||
STRATEGIES = [:authenticatable]
|
||||
|
||||
@@ -84,7 +84,7 @@ module Devise
|
||||
|
||||
# Check if the respective controller has a module in the mapping class.
|
||||
def allows?(controller)
|
||||
self.for.include?(CONTROLLERS[controller.to_sym])
|
||||
(self.for & CONTROLLERS[controller.to_sym]).present?
|
||||
end
|
||||
|
||||
# Return in which position in the path prefix devise should find the as mapping.
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
module Devise
|
||||
VERSION = "0.7.0".freeze
|
||||
VERSION = "0.7.1".freeze
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user