Method: Storefront::Configuration#initialize

Defined in:
lib/storefront/configuration.rb

#initializeConfiguration

Returns a new instance of Configuration.



73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/storefront/configuration.rb', line 73

def initialize
  @hint_class                               = "hint"
  @hint_tag                                 = :figure
  @label_class                              = "label"
  @required_class                           = "required"
  @required_abbr                            = "*"
  @required_title                           = "Required"
  @error_class                              = "error"
  @error_tag                                = :output
  @valid_class                              = nil
  @optional_class                           = "optional"
  @optional_abbr                            = ""
  @optional_title                           = "Optional"
  @label_method                             = :humanize
  @label_attribute                          = :to_label
  @validation_max_limit                     = 255
  @default_text_field_size                  = nil
  @default_text_area_width                  = 300
  @all_fields_required_by_default           = true
  @field_list_tag                           = :ol
  @list_class                               = "field-list"
  @separator                                = "-"
  @breadcrumb                               = " - "
  @include_blank_for_select_by_default      = true
  @collection_label_methods                 = %w(to_label display_name full_name name title to_s)
  @i18n_lookups_by_default                  = true
  @escape_html_entities_in_hints_and_labels = false
  @rename_nested_attributes                 = true
  @inline_validations                       = true
  @fieldset_class                           = "fieldset"
  @field_class                              = "field"
  @validate_class                           = "validate"
  @legend_class                             = "legend"
  @form_class                               = "form"
  @id_enabled_on                            = [] # %w(field label error hint)
  @widgets_path                             = "shared/widgets"
  @nav_class                                = "list-item"
  @include_aria                             = true
  @active_class                             = "active"
  @nav_tag                                  = :li
  @terms_tag                                = :dl
  @term_class                               = "term"
  @term_key_class                           = "key"
  @term_value_class                         = "value"
  @hint_is_popup                            = false
  @list_tag                                 = :ul
  @page_header_id                           = "header"
  @page_title_id                            = "title"
  @page_subtitle_id                         = "subtitle"
  @widget_class                             = "widget"
  @header_class                             = "header"
  @title_class                              = "title"
  @subtitle_class                           = "subtitle"
  @content_class                            = "content"
  @default_header_level                     = 3
  @term_separator                           = ":"
  @rich_input                               = true
  @submit_fieldset_class                    = "submit-fieldset"
  @add_label                                = "+"
  @remove_label                             = "-"
  @cycle_fields                             = false
  @always_include_hint_tag                  = false
  @always_include_error_tag                 = true
  @require_if_validates_presence            = true
  @localize_with_namespace                  = false
  @localize_with_nested_model               = false
  @localize_with_inheritance                = true
end