-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
201 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/usr/bin/env ruby | ||
load File.expand_path("spring", __dir__) | ||
APP_PATH = File.expand_path('../config/application', __dir__) | ||
require_relative "../config/boot" | ||
require "rails/commands" | ||
require_relative '../config/boot' | ||
require 'rails/commands' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/usr/bin/env ruby | ||
load File.expand_path("spring", __dir__) | ||
require_relative "../config/boot" | ||
require "rake" | ||
require_relative '../config/boot' | ||
require 'rake' | ||
Rake.application.run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/usr/bin/env ruby | ||
if !defined?(Spring) && [nil, "development", "test"].include?(ENV["RAILS_ENV"]) | ||
if !defined?(Spring) && [nil, 'development', 'test'].include?(ENV['RAILS_ENV']) | ||
# Load Spring without loading other gems in the Gemfile, for speed. | ||
require "bundler" | ||
Bundler.locked_gems.specs.find { |spec| spec.name == "spring" }&.tap do |spring| | ||
require 'bundler' | ||
Bundler.locked_gems.specs.find { |spec| spec.name == 'spring' }&.tap do |spring| | ||
Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path | ||
gem "spring", spring.version | ||
require "spring/binstub" | ||
gem 'spring', spring.version | ||
require 'spring/binstub' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/sh | ||
echo "Remove this file (bin/yarn) when https://github.com/rails/rails/issues/40795 has a fix" | ||
echo 'Remove this file (bin/yarn) when https://github.com/rails/rails/issues/40795 has a fix' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
require_relative 'boot' | ||
|
||
require 'rails' | ||
|
||
%w[ | ||
active_record/railtie | ||
action_controller/railtie | ||
action_view/railtie | ||
action_mailer/railtie | ||
active_job/railtie | ||
rails/test_unit/railtie | ||
sprockets/railtie | ||
].each do |railtie| | ||
require railtie | ||
end | ||
# Pick the frameworks you want: | ||
require 'active_model/railtie' | ||
require 'active_job/railtie' | ||
require 'active_record/railtie' | ||
# require "active_storage/engine" | ||
require 'action_controller/railtie' | ||
require 'action_mailer/railtie' | ||
# require "action_mailbox/engine" | ||
# require "action_text/engine" | ||
require 'action_view/railtie' | ||
# require "action_cable/engine" | ||
require 'rails/test_unit/railtie' | ||
|
||
# Require the gems listed in Gemfile, including any gems | ||
# you've limited to :test, :development, or :production. | ||
Bundler.require(*Rails.groups) | ||
|
||
module SharecarRails | ||
class Application < Rails::Application | ||
# Settings in config/environments/* take precedence over those specified here. | ||
# Application configuration should go into files in config/initializers | ||
# -- all .rb files in that directory are automatically loaded. | ||
# Initialize configuration defaults for originally generated Rails version. | ||
config.load_defaults 7.0 | ||
|
||
config.time_zone = 'Tokyo' | ||
config.middleware.insert_after ActionDispatch::Static, Rack::Deflater | ||
config.autoload_paths += ["#{Rails.root}/app/forms"] | ||
config.active_record.legacy_connection_handling = false | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ActionMailer::Base.smtp_settings = { | ||
user_name: 'apikey', | ||
password: Rails.application.secrets.sendgrid_api_key, | ||
domain: Rails.application.secrets.domain, | ||
address: 'smtp.sendgrid.net', | ||
port: 587, | ||
authentication: :plain, | ||
enable_starttls_auto: true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
# Configure sensitive parameters which will be filtered from the log file. | ||
# Configure parameters to be filtered from the log file. Use this to limit dissemination of | ||
# sensitive information. See the ActiveSupport::ParameterFilter documentation for supported | ||
# notations and behaviors. | ||
Rails.application.config.filter_parameters += %i[ | ||
passw secret token _key crypt salt certificate otp ssn password | ||
passw secret token _key crypt salt certificate otp ssn | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.