I don't think so, @role is present only when you work within its scope. So if you edit a filter that you found on list of filter of a given @role, f.object.role_id should be the same as @role. In some case user could manually modify URL so he enters e.g. ```/edit/1?role_id=1``` where filter with id 1 has role_id set to 2. User should see current value in form I think therefore 2.