Sha256: 8a930dbb88c49a964055a90feff77ec580cd11b3bdcd42ae97afd85c1d52d0e8
Contents?: true
Size: 516 Bytes
Versions: 1
Compression:
Stored size: 516 Bytes
Contents
#require 'rails_admin/config/fields/base' module RailsAdmin::Config::Fields::Types class RichEditor < RailsAdmin::Config::Fields::Base RailsAdmin::Config::Fields::Types::register(:rich_editor, self) @view_helper = :text_area register_instance_option(:config) do {} end register_instance_option(:partial) do :form_rich_text end def scope_type bindings[:form].object_name end def scope_id bindings[:object].id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rich-1.0.0 | lib/rich/rails_admin/config/fields/types/rich_editor.rb |