Skip to content

Instantly share code, notes, and snippets.

@Phazz
Created June 11, 2013 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Phazz/5755611 to your computer and use it in GitHub Desktop.
Save Phazz/5755611 to your computer and use it in GitHub Desktop.
AA Chosen
module ActiveAdmin
module Inputs
class FilterSelectInput < ::Formtastic::Inputs::SelectInput
def extra_input_html_options
{
:class => 'chosen'
}
end
end
end
end
class Formtastic::Inputs::SelectInput
def extra_input_html_options
{
:class => 'chosen',
:multiple => multiple?
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment