Ver Fonte

Comment out editing of announcement dashboard for zeitwerk bug for now

Chris Oliver há 5 anos atrás
pai
commit
804a881e1f
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      template.rb

+ 4 - 4
template.rb

@@ -38,7 +38,7 @@ def rails_6?
 end
 
 def add_gems
-  gem 'administrate', github: "excid3/administrate", branch: "zeitwerk"
+  gem 'administrate', github: "thoughtbot/administrate"
   gem 'bootstrap', '~> 4.3', '>= 4.3.1'
   gem 'devise', '~> 4.6', '>= 4.6.1'
   gem 'devise-bootstrapped', github: 'excid3/devise-bootstrapped', branch: 'bootstrap4'
@@ -179,9 +179,9 @@ end
 def add_administrate
   generate "administrate:install"
 
-  gsub_file "app/dashboards/announcement_dashboard.rb",
-    /announcement_type: Field::String/,
-    "announcement_type: Field::Select.with_options(collection: Announcement::TYPES)"
+  #gsub_file "app/dashboards/announcement_dashboard.rb",
+    #/announcement_type: Field::String/,
+    #"announcement_type: Field::Select.with_options(collection: Announcement::TYPES)"
 
   gsub_file "app/dashboards/user_dashboard.rb",
     /email: Field::String/,