Class: Koi::Helpers::AttributeTypes::AttachmentType

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/koi/helpers/attribute_types.rb

Instance Attribute Summary

Attributes inherited from Base

#attribute

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_inputObject



127
128
129
# File 'lib/generators/koi/helpers/attribute_types.rb', line 127

def govuk_input
  %(<%= form.govuk_image_field :#{attribute.name} %>)
end

#show_rowObject



131
132
133
# File 'lib/generators/koi/helpers/attribute_types.rb', line 131

def show_row
  %(<% row.attachment :#{attribute.name} %>)
end