Class: Locomotive::EditableSelectInput

Inherits:
SimpleForm::Inputs::CollectionSelectInput
  • Object
show all
Includes:
SimpleForm::HeaderLink
Defined in:
app/inputs/locomotive/editable_select_input.rb

Instance Method Summary collapse

Methods included from SimpleForm::HeaderLink

#_header_link

Instance Method Details

#errors_on_attributeObject


10
11
12
# File 'app/inputs/locomotive/editable_select_input.rb', line 10

def errors_on_attribute
  (options[:error_name] ? object.errors[options[:error_name]] : nil) || super
end

6
7
8
# File 'app/inputs/locomotive/editable_select_input.rb', line 6

def link(wrapper_options)
  _header_link(:manage_collection, :select_input)
end