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) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# 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)
  (:div, "",
              data: {
                react_class: "AudiencesEditor",
                audiences_uri: uri,
                audiences_context: context.signed_key,
              },
              class: html_class)
end