Fix/resource association search

Please have a look to the commit comments for detailed explanations.
You don't need this `names` local variable here. `.map` returns the altered array. 

```
  model_associations.map do |assoc|
    assoc.name.to_sym
  end

```
should do the trick.