Sha256: cae079dc187440df0be056e501ca052e069d8528fbedb4901b804e60d9bd2ac6
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
module RailsAdmin module Config module Fields module Types class EnjoyHtml < RailsAdmin::Config::Fields::Types::CKEditor # Register field type for the type loader RailsAdmin::Config::Fields::Types::register(self) include RailsAdmin::Engine.routes.url_helpers register_instance_option :pretty_value do bindings[:object].send(name + "_html") end register_instance_option :form_value do { html: bindings[:object].send("#{name}_html"), clear: bindings[:object].send("#{name}_clear") } end register_instance_option :formatted_value do pretty_value end register_instance_option :export_value do pretty_value end register_instance_option :boolean_view_helper do :check_box end register_instance_option :partial do :enjoy_html end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enjoy_cms-0.3.0.4 | lib/enjoy/rails_admin_enjoy_html.rb |
enjoy_cms-0.3.0.3 | lib/enjoy/rails_admin_enjoy_html.rb |
enjoy_cms-0.3.0.2 | lib/enjoy/rails_admin_enjoy_html.rb |