You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
works in 1.6.7. When upgrading to 1.6.8 load_and_authorize_resource is not building a resource from params.
class Settings::ControlUsersController < ApplicationController
load_and_authorize_resource :class => 'User'
def create
# @control_user is a User but was not built with params[:control_user]
respond_to do |format|
if @control_user.save
#...
else
#...
end
end
end
end
The text was updated successfully, but these errors were encountered:
@jnimety: This is a regression in 1.6.8. I've created a fix for it. Can you please use my fork of CanCan and branch "fix-issue-664" and test it out. Here's the link to it: https://github.com/andhapp/cancan/tree/fix-issue-664. If it does fix your issue, I'll create a pull request and get it merged. Thanks.
works in 1.6.7. When upgrading to 1.6.8 load_and_authorize_resource is not building a resource from params.
The text was updated successfully, but these errors were encountered: