Class: Koi::Helpers::AttributeTypes::RichTextType

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



117
118
119
# File 'lib/generators/koi/helpers/attribute_types.rb', line 117

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

#show_rowObject



121
122
123
# File 'lib/generators/koi/helpers/attribute_types.rb', line 121

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