Created
February 23, 2014 10:54
-
-
Save azinazadi/9169900 to your computer and use it in GitHub Desktop.
flat ui checkbox helper for simple_form. use :as => :fui_boolean
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
class FuiBooleanInput < SimpleForm::Inputs::BooleanInput | |
self.default_options = {:input_html => {'data-toggle' => "checkbox"}, :inline_label => true, :label => false} | |
def nested_boolean_style? | |
true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment