Module: Audiences::EditorHelper
- Defined in:
- lib/audiences/editor_helper.rb
Instance Method Summary collapse
Instance Method Details
#render_audiences_editor(context, html_class: "audiences-editor", uri: Audiences::Engine.routes.url_helpers.root_path, allow_match_all: true, allow_individuals: true) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/audiences/editor_helper.rb', line 5 def render_audiences_editor(context, html_class: "audiences-editor", uri: Audiences::Engine.routes.url_helpers.root_path, allow_match_all: true, allow_individuals: true) content_tag(:div, "", data: { react_class: "AudiencesEditor", audiences_uri: uri, audiences_context: context.signed_key, allow_match_all: allow_match_all, allow_individuals: allow_individuals, }, class: html_class) end |