lib/devise/mapping.rb in devise-0.7.0 vs lib/devise/mapping.rb in devise-0.7.1

- old
+ new

@@ -82,10 +82,10 @@ klass end # 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. def as_position self.path_prefix.count("/")