Class: Koi::Helpers::AttributeTypes::AttachmentType
- Defined in:
- lib/generators/koi/helpers/attribute_types.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#collection_attribute, #index_row, #initialize
Constructor Details
This class inherits a constructor from Koi::Helpers::AttributeTypes::Base
Instance Method Details
#govuk_input ⇒ Object
127 128 129 |
# File 'lib/generators/koi/helpers/attribute_types.rb', line 127 def govuk_input %(<%= form.govuk_image_field :#{attribute.name} %>) end |
#show_row ⇒ Object
131 132 133 |
# File 'lib/generators/koi/helpers/attribute_types.rb', line 131 def show_row %(<% row.attachment :#{attribute.name} %>) end |