actionmailbox 0.1.0 → 6.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/{LICENSE → MIT-LICENSE} +1 -1
- data/README.md +2 -267
- data/app/controllers/action_mailbox/base_controller.rb +26 -31
- data/app/controllers/action_mailbox/ingresses/amazon/inbound_emails_controller.rb +48 -44
- data/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb +88 -84
- data/app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb +64 -60
- data/app/controllers/action_mailbox/ingresses/postmark/inbound_emails_controller.rb +62 -0
- data/app/controllers/action_mailbox/ingresses/relay/inbound_emails_controller.rb +65 -0
- data/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb +51 -47
- data/app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb +27 -20
- data/app/controllers/rails/conductor/action_mailbox/reroutes_controller.rb +15 -11
- data/app/controllers/rails/conductor/base_controller.rb +12 -8
- data/app/jobs/action_mailbox/incineration_job.rb +17 -13
- data/app/jobs/action_mailbox/routing_job.rb +10 -6
- data/app/models/action_mailbox/inbound_email.rb +43 -37
- data/app/models/action_mailbox/inbound_email/incineratable.rb +5 -3
- data/app/models/action_mailbox/inbound_email/incineratable/incineration.rb +21 -17
- data/app/models/action_mailbox/inbound_email/message_id.rb +22 -20
- data/app/models/action_mailbox/inbound_email/routable.rb +7 -5
- data/app/views/rails/conductor/action_mailbox/inbound_emails/new.html.erb +5 -0
- data/config/routes.rb +2 -1
- data/db/migrate/20180917164000_create_action_mailbox_tables.rb +10 -4
- data/lib/action_mailbox.rb +2 -1
- data/lib/action_mailbox/base.rb +100 -93
- data/lib/action_mailbox/callbacks.rb +3 -1
- data/lib/action_mailbox/engine.rb +9 -1
- data/lib/action_mailbox/gem_version.rb +17 -0
- data/lib/action_mailbox/mail_ext.rb +2 -0
- data/lib/action_mailbox/mail_ext/address_equality.rb +7 -3
- data/lib/action_mailbox/mail_ext/address_wrapping.rb +7 -3
- data/lib/action_mailbox/mail_ext/addresses.rb +22 -18
- data/lib/action_mailbox/mail_ext/from_source.rb +2 -0
- data/lib/action_mailbox/mail_ext/recipients.rb +7 -3
- data/lib/action_mailbox/{postfix_relayer.rb → relayer.rb} +18 -10
- data/lib/action_mailbox/router.rb +30 -26
- data/lib/action_mailbox/router/route.rb +34 -30
- data/lib/action_mailbox/routing.rb +3 -1
- data/lib/action_mailbox/test_case.rb +4 -0
- data/lib/action_mailbox/test_helper.rb +8 -6
- data/lib/action_mailbox/version.rb +8 -1
- data/lib/rails/generators/installer.rb +10 -0
- data/lib/rails/generators/mailbox/USAGE +12 -0
- data/lib/rails/generators/mailbox/mailbox_generator.rb +32 -0
- data/lib/{templates/mailboxes/application_mailbox.rb → rails/generators/mailbox/templates/application_mailbox.rb.tt} +1 -1
- data/lib/rails/generators/mailbox/templates/mailbox.rb.tt +4 -0
- data/lib/rails/generators/test_unit/mailbox_generator.rb +20 -0
- data/lib/rails/generators/test_unit/templates/mailbox_test.rb.tt +13 -0
- data/lib/tasks/ingress.rake +53 -5
- data/lib/tasks/install.rake +1 -1
- metadata +66 -237
- data/.gitignore +0 -2
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -159
- data/Rakefile +0 -27
- data/actionmailbox.gemspec +0 -27
- data/app/controllers/action_mailbox/ingresses/postfix/inbound_emails_controller.rb +0 -55
- data/bin/test +0 -5
- data/lib/templates/installer.rb +0 -4
- data/test/controllers/ingresses/amazon/inbound_emails_controller_test.rb +0 -20
- data/test/controllers/ingresses/mailgun/inbound_emails_controller_test.rb +0 -89
- data/test/controllers/ingresses/mandrill/inbound_emails_controller_test.rb +0 -58
- data/test/controllers/ingresses/postfix/inbound_emails_controller_test.rb +0 -54
- data/test/controllers/ingresses/sendgrid/inbound_emails_controller_test.rb +0 -44
- data/test/dummy/.babelrc +0 -18
- data/test/dummy/.gitignore +0 -3
- data/test/dummy/.postcssrc.yml +0 -3
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/config/manifest.js +0 -3
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/stylesheets/application.css +0 -15
- data/test/dummy/app/assets/stylesheets/scaffold.css +0 -80
- data/test/dummy/app/channels/application_cable/channel.rb +0 -4
- data/test/dummy/app/channels/application_cable/connection.rb +0 -4
- data/test/dummy/app/controllers/application_controller.rb +0 -2
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/javascript/packs/application.js +0 -0
- data/test/dummy/app/jobs/application_job.rb +0 -2
- data/test/dummy/app/mailboxes/application_mailbox.rb +0 -2
- data/test/dummy/app/mailboxes/messages_mailbox.rb +0 -4
- data/test/dummy/app/mailers/application_mailer.rb +0 -4
- data/test/dummy/app/models/application_record.rb +0 -3
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/app/views/layouts/mailer.html.erb +0 -13
- data/test/dummy/app/views/layouts/mailer.text.erb +0 -1
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/bin/setup +0 -36
- data/test/dummy/bin/update +0 -31
- data/test/dummy/bin/yarn +0 -11
- data/test/dummy/config.ru +0 -5
- data/test/dummy/config/application.rb +0 -19
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/cable.yml +0 -10
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -63
- data/test/dummy/config/environments/production.rb +0 -96
- data/test/dummy/config/environments/test.rb +0 -46
- data/test/dummy/config/initializers/application_controller_renderer.rb +0 -8
- data/test/dummy/config/initializers/assets.rb +0 -14
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/content_security_policy.rb +0 -22
- data/test/dummy/config/initializers/cookies_serializer.rb +0 -5
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -4
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -33
- data/test/dummy/config/puma.rb +0 -34
- data/test/dummy/config/routes.rb +0 -4
- data/test/dummy/config/spring.rb +0 -6
- data/test/dummy/config/storage.yml +0 -35
- data/test/dummy/config/webpack/development.js +0 -3
- data/test/dummy/config/webpack/environment.js +0 -3
- data/test/dummy/config/webpack/production.js +0 -3
- data/test/dummy/config/webpack/test.js +0 -3
- data/test/dummy/config/webpacker.yml +0 -65
- data/test/dummy/db/migrate/20180208205311_create_action_mailroom_tables.rb +0 -11
- data/test/dummy/db/migrate/20180212164506_create_active_storage_tables.active_storage.rb +0 -26
- data/test/dummy/db/schema.rb +0 -43
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/package.json +0 -11
- data/test/dummy/public/404.html +0 -67
- data/test/dummy/public/422.html +0 -67
- data/test/dummy/public/500.html +0 -66
- data/test/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/test/dummy/public/apple-touch-icon.png +0 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/storage/.keep +0 -0
- data/test/dummy/yarn.lock +0 -6071
- data/test/fixtures/files/welcome.eml +0 -631
- data/test/jobs/incineration_job_test.rb +0 -17
- data/test/test_helper.rb +0 -54
- data/test/unit/inbound_email/incineration_test.rb +0 -45
- data/test/unit/inbound_email/message_id_test.rb +0 -13
- data/test/unit/inbound_email_test.rb +0 -13
- data/test/unit/mail_ext/address_equality_test.rb +0 -9
- data/test/unit/mail_ext/address_wrapping_test.rb +0 -11
- data/test/unit/mail_ext/recipients_test.rb +0 -33
- data/test/unit/mailbox/bouncing_test.rb +0 -29
- data/test/unit/mailbox/callbacks_test.rb +0 -75
- data/test/unit/mailbox/routing_test.rb +0 -30
- data/test/unit/mailbox/state_test.rb +0 -49
- data/test/unit/postfix_relayer_test.rb +0 -90
- data/test/unit/router_test.rb +0 -137
@@ -1,54 +0,0 @@
|
|
1
|
-
require "test_helper"
|
2
|
-
|
3
|
-
class ActionMailbox::Ingresses::Postfix::InboundEmailsControllerTest < ActionDispatch::IntegrationTest
|
4
|
-
setup { ActionMailbox.ingress = :postfix }
|
5
|
-
|
6
|
-
test "receiving an inbound email from Postfix" do
|
7
|
-
assert_difference -> { ActionMailbox::InboundEmail.count }, +1 do
|
8
|
-
post rails_postfix_inbound_emails_url, headers: { "Authorization" => credentials, "Content-Type" => "message/rfc822" },
|
9
|
-
params: file_fixture("../files/welcome.eml").read
|
10
|
-
end
|
11
|
-
|
12
|
-
assert_response :no_content
|
13
|
-
|
14
|
-
inbound_email = ActionMailbox::InboundEmail.last
|
15
|
-
assert_equal file_fixture("../files/welcome.eml").read, inbound_email.raw_email.download
|
16
|
-
assert_equal "0CB459E0-0336-41DA-BC88-E6E28C697DDB@37signals.com", inbound_email.message_id
|
17
|
-
end
|
18
|
-
|
19
|
-
test "rejecting an unauthorized inbound email from Postfix" do
|
20
|
-
assert_no_difference -> { ActionMailbox::InboundEmail.count } do
|
21
|
-
post rails_postfix_inbound_emails_url, headers: { "Content-Type" => "message/rfc822" },
|
22
|
-
params: file_fixture("../files/welcome.eml").read
|
23
|
-
end
|
24
|
-
|
25
|
-
assert_response :unauthorized
|
26
|
-
end
|
27
|
-
|
28
|
-
test "rejecting an inbound email of an unsupported media type from Postfix" do
|
29
|
-
assert_no_difference -> { ActionMailbox::InboundEmail.count } do
|
30
|
-
post rails_postfix_inbound_emails_url, headers: { "Authorization" => credentials, "Content-Type" => "text/plain" },
|
31
|
-
params: file_fixture("../files/welcome.eml").read
|
32
|
-
end
|
33
|
-
|
34
|
-
assert_response :unsupported_media_type
|
35
|
-
end
|
36
|
-
|
37
|
-
test "raising when the configured password is nil" do
|
38
|
-
switch_password_to nil do
|
39
|
-
assert_raises ArgumentError do
|
40
|
-
post rails_postfix_inbound_emails_url, headers: { "Authorization" => credentials, "Content-Type" => "message/rfc822" },
|
41
|
-
params: file_fixture("../files/welcome.eml").read
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
test "raising when the configured password is blank" do
|
47
|
-
switch_password_to "" do
|
48
|
-
assert_raises ArgumentError do
|
49
|
-
post rails_postfix_inbound_emails_url, headers: { "Authorization" => credentials, "Content-Type" => "message/rfc822" },
|
50
|
-
params: file_fixture("../files/welcome.eml").read
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
require "test_helper"
|
2
|
-
|
3
|
-
class ActionMailbox::Ingresses::Sendgrid::InboundEmailsControllerTest < ActionDispatch::IntegrationTest
|
4
|
-
setup { ActionMailbox.ingress = :sendgrid }
|
5
|
-
|
6
|
-
test "receiving an inbound email from Sendgrid" do
|
7
|
-
assert_difference -> { ActionMailbox::InboundEmail.count }, +1 do
|
8
|
-
post rails_sendgrid_inbound_emails_url,
|
9
|
-
headers: { authorization: credentials }, params: { email: file_fixture("../files/welcome.eml").read }
|
10
|
-
end
|
11
|
-
|
12
|
-
assert_response :no_content
|
13
|
-
|
14
|
-
inbound_email = ActionMailbox::InboundEmail.last
|
15
|
-
assert_equal file_fixture("../files/welcome.eml").read, inbound_email.raw_email.download
|
16
|
-
assert_equal "0CB459E0-0336-41DA-BC88-E6E28C697DDB@37signals.com", inbound_email.message_id
|
17
|
-
end
|
18
|
-
|
19
|
-
test "rejecting an unauthorized inbound email from Sendgrid" do
|
20
|
-
assert_no_difference -> { ActionMailbox::InboundEmail.count } do
|
21
|
-
post rails_sendgrid_inbound_emails_url, params: { email: file_fixture("../files/welcome.eml").read }
|
22
|
-
end
|
23
|
-
|
24
|
-
assert_response :unauthorized
|
25
|
-
end
|
26
|
-
|
27
|
-
test "raising when the configured password is nil" do
|
28
|
-
switch_password_to nil do
|
29
|
-
assert_raises ArgumentError do
|
30
|
-
post rails_sendgrid_inbound_emails_url,
|
31
|
-
headers: { authorization: credentials }, params: { email: file_fixture("../files/welcome.eml").read }
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
test "raising when the configured password is blank" do
|
37
|
-
switch_password_to "" do
|
38
|
-
assert_raises ArgumentError do
|
39
|
-
post rails_sendgrid_inbound_emails_url,
|
40
|
-
headers: { authorization: credentials }, params: { email: file_fixture("../files/welcome.eml").read }
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
data/test/dummy/.babelrc
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"presets": [
|
3
|
-
["env", {
|
4
|
-
"modules": false,
|
5
|
-
"targets": {
|
6
|
-
"browsers": "> 1%",
|
7
|
-
"uglify": true
|
8
|
-
},
|
9
|
-
"useBuiltIns": true
|
10
|
-
}]
|
11
|
-
],
|
12
|
-
|
13
|
-
"plugins": [
|
14
|
-
"syntax-dynamic-import",
|
15
|
-
"transform-object-rest-spread",
|
16
|
-
["transform-class-properties", { "spec": true }]
|
17
|
-
]
|
18
|
-
}
|
data/test/dummy/.gitignore
DELETED
data/test/dummy/.postcssrc.yml
DELETED
data/test/dummy/Rakefile
DELETED
File without changes
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
-
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
10
|
-
* files in this directory. Styles in this file should be added after the last require_* statement.
|
11
|
-
* It is generally better to create a new file per style scope.
|
12
|
-
*
|
13
|
-
*= require_tree .
|
14
|
-
*= require_self
|
15
|
-
*/
|
@@ -1,80 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
background-color: #fff;
|
3
|
-
color: #333;
|
4
|
-
margin: 33px;
|
5
|
-
}
|
6
|
-
|
7
|
-
body, p, ol, ul, td {
|
8
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
9
|
-
font-size: 13px;
|
10
|
-
line-height: 18px;
|
11
|
-
}
|
12
|
-
|
13
|
-
pre {
|
14
|
-
background-color: #eee;
|
15
|
-
padding: 10px;
|
16
|
-
font-size: 11px;
|
17
|
-
}
|
18
|
-
|
19
|
-
a {
|
20
|
-
color: #000;
|
21
|
-
}
|
22
|
-
|
23
|
-
a:visited {
|
24
|
-
color: #666;
|
25
|
-
}
|
26
|
-
|
27
|
-
a:hover {
|
28
|
-
color: #fff;
|
29
|
-
background-color: #000;
|
30
|
-
}
|
31
|
-
|
32
|
-
th {
|
33
|
-
padding-bottom: 5px;
|
34
|
-
}
|
35
|
-
|
36
|
-
td {
|
37
|
-
padding: 0 5px 7px;
|
38
|
-
}
|
39
|
-
|
40
|
-
div.field,
|
41
|
-
div.actions {
|
42
|
-
margin-bottom: 10px;
|
43
|
-
}
|
44
|
-
|
45
|
-
#notice {
|
46
|
-
color: green;
|
47
|
-
}
|
48
|
-
|
49
|
-
.field_with_errors {
|
50
|
-
padding: 2px;
|
51
|
-
background-color: red;
|
52
|
-
display: table;
|
53
|
-
}
|
54
|
-
|
55
|
-
#error_explanation {
|
56
|
-
width: 450px;
|
57
|
-
border: 2px solid red;
|
58
|
-
padding: 7px 7px 0;
|
59
|
-
margin-bottom: 20px;
|
60
|
-
background-color: #f0f0f0;
|
61
|
-
}
|
62
|
-
|
63
|
-
#error_explanation h2 {
|
64
|
-
text-align: left;
|
65
|
-
font-weight: bold;
|
66
|
-
padding: 5px 5px 5px 15px;
|
67
|
-
font-size: 12px;
|
68
|
-
margin: -7px -7px 0;
|
69
|
-
background-color: #c00;
|
70
|
-
color: #fff;
|
71
|
-
}
|
72
|
-
|
73
|
-
#error_explanation ul li {
|
74
|
-
font-size: 12px;
|
75
|
-
list-style: square;
|
76
|
-
}
|
77
|
-
|
78
|
-
label {
|
79
|
-
display: block;
|
80
|
-
}
|
File without changes
|
File without changes
|
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= yield %>
|
data/test/dummy/bin/bundle
DELETED
data/test/dummy/bin/rails
DELETED
data/test/dummy/bin/rake
DELETED
data/test/dummy/bin/setup
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'fileutils'
|
3
|
-
include FileUtils
|
4
|
-
|
5
|
-
# path to your application root.
|
6
|
-
APP_ROOT = File.expand_path('..', __dir__)
|
7
|
-
|
8
|
-
def system!(*args)
|
9
|
-
system(*args) || abort("\n== Command #{args} failed ==")
|
10
|
-
end
|
11
|
-
|
12
|
-
chdir APP_ROOT do
|
13
|
-
# This script is a starting point to setup your application.
|
14
|
-
# Add necessary setup steps to this file.
|
15
|
-
|
16
|
-
puts '== Installing dependencies =='
|
17
|
-
system! 'gem install bundler --conservative'
|
18
|
-
system('bundle check') || system!('bundle install')
|
19
|
-
|
20
|
-
# Install JavaScript dependencies if using Yarn
|
21
|
-
# system('bin/yarn')
|
22
|
-
|
23
|
-
# puts "\n== Copying sample files =="
|
24
|
-
# unless File.exist?('config/database.yml')
|
25
|
-
# cp 'config/database.yml.sample', 'config/database.yml'
|
26
|
-
# end
|
27
|
-
|
28
|
-
puts "\n== Preparing database =="
|
29
|
-
system! 'bin/rails db:setup'
|
30
|
-
|
31
|
-
puts "\n== Removing old logs and tempfiles =="
|
32
|
-
system! 'bin/rails log:clear tmp:clear'
|
33
|
-
|
34
|
-
puts "\n== Restarting application server =="
|
35
|
-
system! 'bin/rails restart'
|
36
|
-
end
|
data/test/dummy/bin/update
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'fileutils'
|
3
|
-
include FileUtils
|
4
|
-
|
5
|
-
# path to your application root.
|
6
|
-
APP_ROOT = File.expand_path('..', __dir__)
|
7
|
-
|
8
|
-
def system!(*args)
|
9
|
-
system(*args) || abort("\n== Command #{args} failed ==")
|
10
|
-
end
|
11
|
-
|
12
|
-
chdir APP_ROOT do
|
13
|
-
# This script is a way to update your development environment automatically.
|
14
|
-
# Add necessary update steps to this file.
|
15
|
-
|
16
|
-
puts '== Installing dependencies =='
|
17
|
-
system! 'gem install bundler --conservative'
|
18
|
-
system('bundle check') || system!('bundle install')
|
19
|
-
|
20
|
-
# Install JavaScript dependencies if using Yarn
|
21
|
-
# system('bin/yarn')
|
22
|
-
|
23
|
-
puts "\n== Updating database =="
|
24
|
-
system! 'bin/rails db:migrate'
|
25
|
-
|
26
|
-
puts "\n== Removing old logs and tempfiles =="
|
27
|
-
system! 'bin/rails log:clear tmp:clear'
|
28
|
-
|
29
|
-
puts "\n== Restarting application server =="
|
30
|
-
system! 'bin/rails restart'
|
31
|
-
end
|
data/test/dummy/bin/yarn
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path('..', __dir__)
|
3
|
-
Dir.chdir(APP_ROOT) do
|
4
|
-
begin
|
5
|
-
exec "yarnpkg", *ARGV
|
6
|
-
rescue Errno::ENOENT
|
7
|
-
$stderr.puts "Yarn executable was not detected in the system."
|
8
|
-
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
|
9
|
-
exit 1
|
10
|
-
end
|
11
|
-
end
|
data/test/dummy/config.ru
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
require_relative 'boot'
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
Bundler.require(*Rails.groups)
|
6
|
-
require "action_mailbox"
|
7
|
-
|
8
|
-
module Dummy
|
9
|
-
class Application < Rails::Application
|
10
|
-
# Initialize configuration defaults for originally generated Rails version.
|
11
|
-
config.load_defaults 5.2
|
12
|
-
|
13
|
-
# Settings in config/environments/* take precedence over those specified here.
|
14
|
-
# Application configuration can go into files in config/initializers
|
15
|
-
# -- all .rb files in that directory are automatically loaded after loading
|
16
|
-
# the framework and any gems in your application.
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|