Accessing to /users/search tries to load object a raises error:
filter_access_to tried to find User from params[:id] (nil), because attribute_check is enabled and @user isn't set, but failed: ActiveRecord::RecordNotFound: Couldn't find User with 'id'=
It seems that
:additional_collection
attribute is ignored in Rails 4 (4.2.1) or when:strong_parameters
is set totrue
. Example:Accessing to
/users/search
tries to load object a raises error:At the moment the line https://github.com/stffn/declarative_authorization/blob/45e91af20eba71b2828c5c84066bcce3ef032e8a/lib/declarative_authorization/in_controller.rb#L510 is:
But it seems that correct one should be:
@zeiv - is that correct?