not sure i follow, afair, you can just change
```ruby
where(:puppetclasses => @puppetclasses)
```