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



12
13
14
15
16
# File 'lib/ckeditor/hooks/simple_form.rb', line 12

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