Class: AbAdmin::Views::Inputs::TokenInput
- Inherits:
-
SimpleForm::Inputs::StringInput
- Object
- SimpleForm::Inputs::StringInput
- AbAdmin::Views::Inputs::TokenInput
- 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(=nil) attr = .delete(:assoc) || attribute_name.to_s.sub(/^token_|_id$/, '') token_data = object.token_data(attr.to_sym, .extract!(:geo_order, :c, :sortable)) .reverse_deep_merge!(token_data) super end |