Fixed bug with params for actions that build new instances with namespaced models
For example, I have a model Sub::Project and make the following call:
load_resource :instance_name => :project, :class => Sub::Project
when in the 'create' action CanCan waits for params[:project], no params[:sub_project]
This patch fixes it
Fixed bug with params for actions that build new instances with names…
I just hit this same bug.
The patch fixes it, but only if the class option is passed in, which I feel may be redundant.
Given a controller Accessory::ColorsController and a model Accessory::Color, I don't believe it should be necessary to pass in the class option.
I'll do some digging in the source and see what I can come up with.