lib/devise/mapping.rb in devise-4.7.2 vs lib/devise/mapping.rb in devise-4.7.3
- old
+ new
@@ -44,10 +44,10 @@
end
raise "Could not find a valid mapping for #{obj.inspect}"
end
- def self.find_by_path!(path, path_type=:fullpath)
+ def self.find_by_path!(path, path_type = :fullpath)
Devise.mappings.each_value { |m| return m if path.include?(m.send(path_type)) }
raise "Could not find a valid mapping for path #{path.inspect}"
end
def initialize(name, options) #:nodoc: