Module: Ckeditor::Hooks::SimpleFormBuilder::InstanceMethods
- Defined in:
- lib/ckeditor/hooks/simple_form.rb
Instance Method Summary collapse
Instance Method Details
#ckeditor(attribute_name, options = {}, &block) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ckeditor/hooks/simple_form.rb', line 15 def ckeditor(attribute_name, ={}, &block) column = find_attribute_column(attribute_name) input_type = default_input_type(attribute_name, column, ) if block_given? SimpleForm::Inputs::BlockInput.new(self, attribute_name, column, input_type, , &block).render else CkeditorInput.new(self, attribute_name, column, input_type, ).render end end |