Sha256: bd3a845e7216f5e342aea3f2eddf40ebafe816436371898345edd0a0a10e2c0a
Contents?: true
Size: 1.2 KB
Versions: 8
Compression:
Stored size: 1.2 KB
Contents
# -*- encoding : utf-8 -*- class MoveHelpTextToCode < Cardio::Migration::Core def up update_card! "*sidebar", codename: "sidebar" Card::Cache.reset_all # avoid that "list" as input option gets the description of the cardtype "list" Card.ensure name: %i[input right options_label], content: "options description" remove_setting_help_rules remove_search_help_rules remove_self_help_rules :favicon, :tiny_mce, :favicon, :datepicker, "*debugger", :prose_mirror, :sidebar end def remove_search_help_rules %i[created edited children includes refers_to links_to included_by linked_to_by referred_to_by mates editors follow].each do |trait| delete_card [trait, :right, :help] end end def remove_setting_help_rules %i[script input read update create delete accountable add_help autoname captcha create default structure comment follow_fields options thanks layout options_label help head table_of_contents style on_create on_update on_delete].each do |trait| delete_card [trait, :right, :help] end end def remove_self_help_rules *anchors anchors.each do |a| delete_card [a, :self, :help] end end end
Version data entries
8 entries across 8 versions & 1 rubygems