Module: ActiveAdminAssociations::Autocompleter::ClassMethods
- Defined in:
- lib/active_admin_associations/autocompleter.rb
Instance Method Summary collapse
Instance Method Details
#autocomplete(attribute, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/active_admin_associations/autocompleter.rb', line 6 def autocomplete(attribute, = {}) class_attribute :autocomplete_attribute class_attribute :autocomplete_options self.autocomplete_attribute = attribute self. = extend AutocompleteMethods end |