Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
0.9.1 compatibility - Revert "switched use from find_by_url to find_b…
…y_path"

This reverts commit 21b0424.
  • Loading branch information
mfrister committed Oct 10, 2011
1 parent 80025c3 commit 37f487f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/models/radius_tags.rb
Expand Up @@ -304,8 +304,7 @@ def find_with_tag_options(tag)
raise TagError, "`tagged' tag must contain a `with' attribute." unless (tag.attr['with'] || tag.locals.page.class_name = TagSearchPage)
ttag = tag.attr['with'] || @request.parameters[:tag]

scope_path = scope_attr == 'current_page' ? @request.request_uri : scope_attr
scope = Page.find_by_path scope_path
scope = scope_attr == 'current_page' ? Page.find_by_url(@request.request_uri) : Page.find_by_url(scope_attr)
return "The scope attribute must be a valid url to an existing page." if scope.nil? || scope.class_name.eql?('FileNotFoundPage')

if with_any
Expand Down
2 changes: 1 addition & 1 deletion app/models/tag_search_page.rb
Expand Up @@ -95,7 +95,7 @@ def render
super
end

def find_by_path(url, live = true, clean = false)
def find_by_url(url, live = true, clean = false)
url = clean_url(url).chop # chop off trailing slash added by clean_url
if url =~ /^#{self.url}([a-zA-Z0-9,\_\-\s\/()'.&]*)\/?$/
self.requested_tag = $1
Expand Down

0 comments on commit 37f487f

Please sign in to comment.