Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Rails 4 - strong parameters #183
I also haven't been able to get
Anyway everything is working in my Rails 4 app now. I'll submit a pull request in a bit.
Not much more than what you have unfortunately, but I'll push my most recent commits so you can take a look. In that load_object method
Also, I've open-sourced the Rails 4 app that I've been trying to get declarative_authorization working with, if that helps: https://github.com/zeiv/udjournal. The problems I were encountering in that app ARE fixed now, but I'm still not satisfied with the test coverage I've added to declarative_authorization for Rails 4 compatibility, so I'm going to hold off on that pull request for a bit longer.
EDIT: Another major problem with my progress so far is that for some reason I can't get the
From the in_controller.rb source comments: "filter_resource_access creates a new object from company parameters: Company.new(params[:company]."
After spending countless hours trying to get this working with strong_parameters, I've come to the realization that this behaviour is precisely the what strong_parameters is trying to prevent! I've disable the "feature" when the