Class: SimpleForm::FormBuilder

Inherits:
Object
  • Object
show all
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, options={}, &block)
  warn "[DEPRECATION] calling f.ckeditor(:#{attribute_name}, ...) is deprecated, call f.input(:#{attribute_name}, :as => :ckeditor, #{options.to_s[1..-1]}) #{Kernel.caller.first}"
  options[:as] = :ckeditor
  self.input(attribute_name, options, &block)
end