Class: SimpleForm::FormBuilder
- Inherits:
-
Object
- Object
- SimpleForm::FormBuilder
- Defined in:
- lib/ckeditor/hooks/simple_form.rb
Overview
TODO: remove this after a while, SimpleForm::FormBuilder#ckeditor is deprecated.
Instance Method Summary collapse
Instance Method Details
#ckeditor(attribute_name, options = {}, &block) ⇒ Object
12 13 14 15 16 |
# File 'lib/ckeditor/hooks/simple_form.rb', line 12 def ckeditor(attribute_name, ={}, &block) warn "[DEPRECATION] calling f.ckeditor(:#{attribute_name}, ...) is deprecated, call f.input(:#{attribute_name}, :as => :ckeditor, #{.to_s[1..-1]}) #{Kernel.caller.first}" [:as] = :ckeditor self.input(attribute_name, , &block) end |