This rule was added in rubocop 1.77. We were following it most of the time. It makes the code more readable in my humble opinion.
17 lines
595 B
Ruby
17 lines
595 B
Ruby
# Default admin user (change password after first deploy to a server!)
|
|
if Administrator.none? && (!Rails.env.test? || !Tenant.default?)
|
|
admin = User.create!(username: "admin", email: "admin@consul.dev", password: "12345678",
|
|
password_confirmation: "12345678", confirmed_at: Time.current,
|
|
terms_of_service: "1")
|
|
admin.create_administrator
|
|
end
|
|
|
|
Setting.reset_defaults
|
|
load Rails.root.join("db", "web_sections.rb")
|
|
|
|
# Default custom pages
|
|
load Rails.root.join("db", "pages.rb")
|
|
|
|
# Sustainable Development Goals
|
|
load Rails.root.join("db", "sdg.rb")
|