Sha256: e96f2a5a097654977beeb690ac14122fa629d1917191276834958079f837ea8d
Contents?: true
Size: 1.39 KB
Versions: 2
Compression:
Stored size: 1.39 KB
Contents
module FormtasticRebootstrap class FormBuilder < Formtastic::FormBuilder configure :default_inline_error_class, 'help-inline' configure :default_block_error_class, 'help-block' configure :default_inline_hint_class, 'help-inline' configure :default_block_hint_class, 'help-block' self.input_namespaces = [::Object, ::FormtasticRebootstrap::Inputs, ::Formtastic::Inputs] self.action_namespaces = [::Object, ::FormtasticRebootstrap::Actions, ::Formtastic::Actions] # TODO: remove both class finders after formtastic 4 (where it will be default) self.input_class_finder = ::Formtastic::InputClassFinder self.action_class_finder = ::Formtastic::ActionClassFinder def self.default_error_class # self.default_inline_error_class raise end def self.default_error_class=(error_class) # self.default_inline_error_class = error_class # self.default_block_error_class = error_class raise end def self.default_hint_class # self.default_inline_hint_class raise end def self.default_hint_class=(hint_class) # self.default_inline_hint_class = hint_class # self.default_block_hint_class = hint_class raise end include FormtasticRebootstrap::Helpers::InputsHelper include FormtasticRebootstrap::Helpers::ErrorsHelper include FormtasticRebootstrap::Helpers::ActionsHelper end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
formtastic_rebootstrap-0.0.2 | lib/formtastic_rebootstrap/form_builder.rb |
formtastic_rebootstrap-0.0.1 | lib/formtastic_rebootstrap/form_builder.rb |