Skip to content

Commit

Permalink
returning isn't always available
Browse files Browse the repository at this point in the history
  • Loading branch information
nakajima committed Feb 3, 2009
1 parent 6997660 commit 32384af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatras-hat/resource.rb
Expand Up @@ -24,7 +24,7 @@ def path(suffix, record=nil)
private

def path_records_for(record)
returning [record] do |parents|
[record].tap do |parents|
resources.reverse.each do |resource|
parents << resource.model.find_owner(parents.last.attributes)
parents.compact!
Expand Down

0 comments on commit 32384af

Please sign in to comment.