Class: SimpleFormAttachments::AttachmentInput
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- SimpleFormAttachments::AttachmentInput
- Defined in:
- lib/simple_form_attachments/attachment_input.rb
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
8 9 10 |
# File 'lib/simple_form_attachments/attachment_input.rb', line 8 def configuration @configuration end |
Class Method Details
.configure {|@configuration| ... } ⇒ Object
10 11 12 13 |
# File 'lib/simple_form_attachments/attachment_input.rb', line 10 def configure @configuration ||= Configuration.new yield @configuration end |
Instance Method Details
#input(wrapper_options) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/simple_form_attachments/attachment_input.rb', line 22 def input template.content_tag :div, (, ) do template.concat template.concat template.concat template.concat template.concat template.concat template.concat template.concat template.concat end end |