Class: DomternalAreaInput
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- DomternalAreaInput
- Defined in:
- lib/rails/domternal/simple_form_input.rb
Overview
Loaded only when the host app has simple_form (see Engine's "domternal.simple_form"
initializer). simple_form resolves as: :domternal_area by constantizing
"DomternalAreaInput" at the top level, which is why this isn't namespaced.
<%= simple_form_for @post do |f| %>
<%= f.input :body, as: :domternal_area %>
<% end %>
An app-defined app/inputs/domternal_area_input.rb takes precedence.
Instance Method Summary collapse
Instance Method Details
#input(wrapper_options = nil) ⇒ Object
13 14 15 16 |
# File 'lib/rails/domternal/simple_form_input.rb', line 13 def input( = nil) = (, ) @builder.domternal_area(attribute_name, ) end |