Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -515,6 +515,11 @@ def with_default_scope(scope, &block) | |
end | ||
end | ||
|
||
# Query if the following named route was already defined. | ||
def has_named_route?(name) | ||
@set.named_routes.routes[name.to_sym] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
rafaelfranca
Member
|
||
end | ||
|
||
private | ||
def app_name(app) | ||
return unless app.respond_to?(:routes) | ||
|
Shouldn't you do
So that it returns false rather than nil?
Or better yet