|
@@ -36,9 +36,9 @@ def rails_6?
|
|
end
|
|
end
|
|
|
|
|
|
def add_gems
|
|
def add_gems
|
|
- gem 'administrate', github: "thoughtbot/administrate"
|
|
|
|
|
|
+ gem 'administrate', github: "excid3/administrate", branch: 'jumpstart'
|
|
gem 'bootstrap', '~> 4.3', '>= 4.3.1'
|
|
gem 'bootstrap', '~> 4.3', '>= 4.3.1'
|
|
- gem 'devise', '~> 4.6', '>= 4.6.1'
|
|
|
|
|
|
+ gem 'devise', '~> 4.7', '>= 4.7.0'
|
|
gem 'devise-bootstrapped', github: 'excid3/devise-bootstrapped', branch: 'bootstrap4'
|
|
gem 'devise-bootstrapped', github: 'excid3/devise-bootstrapped', branch: 'bootstrap4'
|
|
gem 'devise_masquerade', '~> 0.6.2'
|
|
gem 'devise_masquerade', '~> 0.6.2'
|
|
gem 'font-awesome-sass', '~> 5.6', '>= 5.6.1'
|
|
gem 'font-awesome-sass', '~> 5.6', '>= 5.6.1'
|
|
@@ -184,9 +184,9 @@ end
|
|
def add_administrate
|
|
def add_administrate
|
|
generate "administrate:install"
|
|
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",
|
|
gsub_file "app/dashboards/user_dashboard.rb",
|
|
/email: Field::String/,
|
|
/email: Field::String/,
|