ref: master
plugins/networks/lib/networks_plugin/search_helper.rb
1 2 3 4 5 6 7 8 9 10 11 12 13
module NetworksPlugin::SearchHelper protected def asset_class asset if asset == :networks NetworksPlugin::Network else asset.to_s.singularize.camelize.constantize end end end