Skip to content

Commit

Permalink
Fix bug where id is the same name as the resource name
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Oct 8, 2009
1 parent d2cd1e9 commit 66479f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions History.txt
@@ -1,3 +1,5 @@
* Fix bug where id is the same name as the resource name [mocoso]

* Bugs introduced with RequestPathIntrospection (#5 and #6 on lighthouse) solved thanks to Sergei Serdyuk

* RC no longer uses the route that invoked the controller to figure out wildcard enclosing resources.
Expand Down
Expand Up @@ -29,7 +29,7 @@ def param_keys
end

private
def remove_current_segment(path, singleton = false)
def remove_current_segment(path)
if respond_to?(:resource_specification) && resource_specification.singleton?
path.sub(%r(/#{current_segment}(?!.*/#{current_segment}).*$), '')
else
Expand Down

0 comments on commit 66479f8

Please sign in to comment.