Fixed a search indexing with puppet modules

Previous commit to the same file had a small copy paste error.
Fixed that using ActiveRecord:Concern
Merge pull request #2921 from parthaa/puppet-search-fix

Fixed a search indexing with puppet modules