Created
June 11, 2013 09:28
-
-
Save Phazz/5755611 to your computer and use it in GitHub Desktop.
AA Chosen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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