Method: MotionPrime::BaseFieldSection#default_label_options

Defined in:
motion-prime/sections/form/base_field_section.rb

#default_label_optionsObject



108
109
110
111
112
113
114
115
# File 'motion-prime/sections/form/base_field_section.rb', line 108

def default_label_options
  label_options = options[:label] || {}
  if label_options.has_key?(:text)
    label_options
  else
    {text: options[:name].to_s.titleize}.merge(label_options)
  end
end