Add description around the new method.

This commit is contained in:
David Henry
2014-05-03 22:47:27 +01:00
parent 1dd84a8244
commit feff27aaee

View File

@@ -51,6 +51,9 @@ module Devise
raise "Could not find a valid mapping for #{obj.inspect}"
end
# Receives an object and find a mapping for it, then return the routing
# details associated with the mapping. If a scope cannot be found,
# raises an error.
def self.find_mapping!(obj)
case obj
when String, Symbol