class BootstrapForm::Configuration
Public Instance Methods
default_form_attributes()
click to toggle source
# File lib/bootstrap_form/configuration.rb, line 16 def default_form_attributes return @default_form_attributes if defined? @default_form_attributes # TODO: Return blank hash ({}) in 5.0.0. Role "form" for form tags is redundant and makes W3C to raise a warning. { role: "form" } end
default_form_attributes=(attributes)
click to toggle source
# File lib/bootstrap_form/configuration.rb, line 5 def default_form_attributes=(attributes) case attributes when nil @default_form_attributes = {} when Hash @default_form_attributes = attributes else raise ArgumentError, "Unsupported default_form_attributes #{attributes.inspect}" end end