Class: AbAdmin::Views::Inputs::TokenInput

Inherits:
SimpleForm::Inputs::StringInput
  • Object
show all
Defined in:
lib/ab_admin/views/inputs/token_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options = nil) ⇒ Object



5
6
7
8
9
10
# File 'lib/ab_admin/views/inputs/token_input.rb', line 5

def input(wrapper_options=nil)
  attr = options.delete(:assoc) || attribute_name.to_s.sub(/^token_|_id$/, '')
  token_data = object.token_data(attr.to_sym, options.extract!(:geo_order, :c, :sortable))
  input_html_options.reverse_deep_merge!(token_data)
  super
end