Module: FacetHelper
- Defined in:
- lib/facet_for/facet_helper.rb
Instance Method Summary collapse
Instance Method Details
#render_facets(object, view) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/facet_for/facet_helper.rb', line 2 def render_facets(object, view) facet_html = '' view...each do |facet| facet_html << FacetFor.create_facet(:object => object, :object_name => 'q', :type => facet.predicate.to_sym, :column_name => facet.column_name, :params => params) end facet_html.html_safe end |