Fix error on Rails 4
Merge pull request #1139 from concerto/contentSearch

Fix content search error