Fix most likely copy/paste error
this lambda yielding a bool for `belongs_to` might confuse readers or conflate the :if block
which would probably look something like this
```ruby
belongs_to :primary_agent, if: proc { |movie, params| params[:current_user].present? } do |movie, params|
# in here, params is a hash containing the `:current_user` key
params[:current_user]
end
```
This commit is contained in:
parent
c3376037e7
commit
a25d415b4d
Loading…
x
Reference in New Issue
Block a user