forked from solidusio/solidus
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename auto_migrate to DummyApp::Migrations
It's cleaner to call a method (DummyApp::Migrations.auto_migrate) than to expect side effects from requiring that file.
- Loading branch information
Showing
8 changed files
with
18 additions
and
21 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
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 |
---|---|---|
|
@@ -69,6 +69,7 @@ class Application < ::Rails::Application | |
end | ||
end | ||
config.paths['db/migrate'] = migration_dirs | ||
ActiveRecord::Migrator.migrations_paths = migration_dirs | ||
|
||
config.action_controller.include_all_helpers = false | ||
|
||
|
@@ -81,7 +82,7 @@ class Application < ::Rails::Application | |
end | ||
end | ||
|
||
Spree.user_class = 'Spree::LegacyUser' | ||
require 'spree/testing_support/dummy_app/migrations' | ||
|
||
DummyApp::Application.initialize! | ||
|
||
|
@@ -93,6 +94,7 @@ class Application < ::Rails::Application | |
wrap_parameters format: [:json] | ||
end | ||
|
||
Spree.user_class = 'Spree::LegacyUser' | ||
Spree.config do |config| | ||
config.mails_from = "[email protected]" | ||
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