should it be the other way around?
```ruby
@role.id || f.object.role_id 
```