Skip to content

Commit 11c59f7

Browse files
committed
Regenerate Active Storage dummy app
Generated using the following script and manually reviewed after: skipkayhil/rails-bin@cbad7ed The active_storage configuration had to be moved to the dummy app because of the changed eager_load config. Now, the whole app is eagerly loaded when the app's environment file is required which means that changing configuration in the test_helper is too late.
1 parent 2e5d060 commit 11c59f7

39 files changed

+390
-138
lines changed

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ AllCops:
1616
- '**/vendor/**/*'
1717
- 'actionpack/lib/action_dispatch/journey/parser.rb'
1818
- 'actionmailbox/test/dummy/**/*'
19+
- 'activestorage/test/dummy/**/*'
1920
- 'actiontext/test/dummy/**/*'
2021
- '**/node_modules/**/*'
2122

activestorage/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/src/
2+
/test/dummy/storage/*.sqlite3
3+
/test/dummy/storage/*.sqlite3-*
24
/test/dummy/db/*.sqlite3
35
/test/dummy/db/*.sqlite3-*
46
/test/dummy/log/*.log

activestorage/test/dummy/Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# frozen_string_literal: true
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
23

34
require_relative "config/application"
45

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
21
//= link_tree ../images
32
//= link_directory ../stylesheets .css
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module ApplicationCable
2+
class Channel < ActionCable::Channel::Base
3+
end
4+
end
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module ApplicationCable
2+
class Connection < ActionCable::Connection::Base
3+
end
4+
end
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
# frozen_string_literal: true
2-
31
class ApplicationController < ActionController::Base
4-
protect_from_forgery with: :exception
52
end
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
# frozen_string_literal: true
2-
31
module ApplicationHelper
42
end
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# frozen_string_literal: true
2-
31
class ApplicationJob < ActiveJob::Base
2+
# Automatically retry jobs that encountered a deadlock
3+
# retry_on ActiveRecord::Deadlocked
4+
5+
# Most jobs are safe to ignore if the underlying records are no longer available
6+
# discard_on ActiveJob::DeserializationError
47
end
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class ApplicationMailer < ActionMailer::Base
2+
default from: "[email protected]"
3+
layout "mailer"
4+
end

0 commit comments

Comments
 (0)