Sha256: 139e0b8ee525120cee2586ede2eb515907afcc022be40c28922556a42ad1cef0
Contents?: true
Size: 1.59 KB
Versions: 9
Compression:
Stored size: 1.59 KB
Contents
require 'rails_admin/config/fields/base' module RailsAdmin module Config module Fields module Types class Text < RailsAdmin::Config::Fields::Base # Register field type for the type loader RailsAdmin::Config::Fields::Types.register(self) [:ckeditor, :ckeditor_base_location, :ckeditor_config_js, :ckeditor_location].each do |key| register_deprecated_instance_option key do raise("The 'field(:foo){ ckeditor true }' style DSL is deprecated. Please use 'field :foo, :ck_editor' instead.") end end [:codemirror, :codemirror_assets, :codemirror_config, :codemirror_css_location, :codemirror_js_location].each do |key| register_deprecated_instance_option key do raise("The 'field(:foo){ codemirror true }' style DSL is deprecated. Please use 'field :foo, :code_mirror' instead.") end end [:bootstrap_wysihtml5, :bootstrap_wysihtml5_config_options, :bootstrap_wysihtml5_css_location, :bootstrap_wysihtml5_js_location].each do |key| register_deprecated_instance_option key do raise("The 'field(:foo){ bootstrap_wysihtml5 true }' style DSL is deprecated. Please use 'field :foo, :wysihtml5' instead.") end end register_instance_option :html_attributes do { required: required?, cols: '48', rows: '3', } end register_instance_option :partial do :form_text end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems