Module: Tramway::ApplicationForms::Frontend

Included in:
Tramway::ApplicationForm
Defined in:
app/forms/tramway/application_forms/frontend.rb

Instance Method Summary collapse

Instance Method Details

#react_component(on: false) ⇒ Object



4
5
6
# File 'app/forms/tramway/application_forms/frontend.rb', line 4

def react_component(on: false)
  @react_component = on
end

#react_component?Boolean

Returns:

  • (Boolean)


8
9
10
11
# File 'app/forms/tramway/application_forms/frontend.rb', line 8

def react_component?
  @react_component ||= false
  @react_component
end