Class: Koi::Helpers::AttributeTypes::BooleanType
- Inherits:
-
Base
- Object
- Base
- Koi::Helpers::AttributeTypes::BooleanType
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
#initialize
Instance Method Details
#collection_attribute ⇒ Object
79
80
81
|
# File 'lib/generators/koi/helpers/attribute_types.rb', line 79
def collection_attribute
%(attribute :#{attribute.name}, :boolean)
end
|
67
68
69
|
# File 'lib/generators/koi/helpers/attribute_types.rb', line 67
def govuk_input
%(<%= form.govuk_check_box_field :#{attribute.name} %>)
end
|
#index_row ⇒ Object
71
72
73
|
# File 'lib/generators/koi/helpers/attribute_types.rb', line 71
def index_row
%(<% row.boolean :#{attribute.name} %>)
end
|
#show_row ⇒ Object
75
76
77
|
# File 'lib/generators/koi/helpers/attribute_types.rb', line 75
def show_row
%(<% row.boolean :#{attribute.name} %>)
end
|