Sha256: 8a9ba2a80067712c483bf18eca063eeefdbb188d43ac8f52d3fa4b269ed3a7e5
Contents?: true
Size: 510 Bytes
Versions: 10
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true module BootstrapForm class Configuration 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 def default_form_attributes return @default_form_attributes if defined? @default_form_attributes {} end end end
Version data entries
10 entries across 10 versions & 1 rubygems