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
15 16 17 18 19 |
# File 'lib/ckeditor/hooks/simple_form.rb', line 15 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 |