Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use classify method instead of titlecase so a valid camel-cased s…
…tring is creating before `constantizing`
  • Loading branch information
Josh J committed Apr 23, 2012
1 parent abea32a commit 9f6f0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/easycrumbs/collection.rb
Expand Up @@ -92,7 +92,7 @@ def pick_model(segment)
return nil
end

model = model.titlecase.constantize
model = model.classify.constantize
model.find(@path[key])
end

Expand Down

0 comments on commit 9f6f0b9

Please sign in to comment.