Skip to content

Commit

Permalink
fixed syntax for :as
Browse files Browse the repository at this point in the history
  • Loading branch information
mewlist committed May 17, 2011
1 parent b645a16 commit aacf822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nested-resources/nested-resources.rb
Expand Up @@ -24,7 +24,7 @@ def parse(resource)
if resource.is_a?(Array)
resource.each{|v| parse(v) }
elsif resource.is_a?(Hash)
resource.each{|k, v| @resources[k.to_sym] = v.to_sym}
resource.each{|k, v| @resources[k.to_sym] = (v.to_s.underscore+"_id").to_sym}
else
@resources[resource.to_sym] = (resource.to_s.underscore+"_id").to_sym
end
Expand Down

0 comments on commit aacf822

Please sign in to comment.