diff options
author | George Claghorn <george.claghorn@gmail.com> | 2018-12-14 08:48:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-14 08:48:21 -0500 |
commit | a9653834aded0a31d82468e1e81d90c04b3500d4 (patch) | |
tree | ad69c5981cdc12b3b0a0dd37aba9128ef561239a /app/controllers | |
parent | 36917b7eb6fd41b9a6385e8e7f115f665808c10e (diff) | |
parent | 4412ca6dac7dce284e2010678f7f2e276d60e4d1 (diff) | |
download | rails-a9653834aded0a31d82468e1e81d90c04b3500d4.tar.gz rails-a9653834aded0a31d82468e1e81d90c04b3500d4.tar.bz2 rails-a9653834aded0a31d82468e1e81d90c04b3500d4.zip |
Merge pull request #4 from dixpac/dix/add_frozen_string_literals
Add frozen_string_literal: true to match Rails codebase
Diffstat (limited to 'app/controllers')
9 files changed, 18 insertions, 0 deletions
diff --git a/app/controllers/action_mailbox/base_controller.rb b/app/controllers/action_mailbox/base_controller.rb index b73f5b7708..f8764a8240 100644 --- a/app/controllers/action_mailbox/base_controller.rb +++ b/app/controllers/action_mailbox/base_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # The base class for all Active Mailbox ingress controllers. class ActionMailbox::BaseController < ActionController::Base skip_forgery_protection diff --git a/app/controllers/action_mailbox/ingresses/amazon/inbound_emails_controller.rb b/app/controllers/action_mailbox/ingresses/amazon/inbound_emails_controller.rb index 0c04170eae..2a8ec375c7 100644 --- a/app/controllers/action_mailbox/ingresses/amazon/inbound_emails_controller.rb +++ b/app/controllers/action_mailbox/ingresses/amazon/inbound_emails_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Ingests inbound emails from Amazon's Simple Email Service (SES). # # Requires the full RFC 822 message in the +content+ parameter. Authenticates requests by validating their signatures. diff --git a/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb b/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb index 7583e25f26..225bcc5565 100644 --- a/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb +++ b/app/controllers/action_mailbox/ingresses/mailgun/inbound_emails_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Ingests inbound emails from Mailgun. Requires the following parameters: # # - +body-mime+: The full RFC 822 message diff --git a/app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb b/app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb index 8be27009d2..5a85e6b7f0 100644 --- a/app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb +++ b/app/controllers/action_mailbox/ingresses/mandrill/inbound_emails_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Ingests inbound emails from Mandrill. # # Requires a +mandrill_events+ parameter containing a JSON array of Mandrill inbound email event objects. diff --git a/app/controllers/action_mailbox/ingresses/postfix/inbound_emails_controller.rb b/app/controllers/action_mailbox/ingresses/postfix/inbound_emails_controller.rb index ba04effd1f..a3b794c65b 100644 --- a/app/controllers/action_mailbox/ingresses/postfix/inbound_emails_controller.rb +++ b/app/controllers/action_mailbox/ingresses/postfix/inbound_emails_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Ingests inbound emails relayed from Postfix. # # Authenticates requests using HTTP basic access authentication. The username is always +actionmailbox+, and the diff --git a/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb b/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb index 8e1d781c2c..c48abae66c 100644 --- a/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb +++ b/app/controllers/action_mailbox/ingresses/sendgrid/inbound_emails_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Ingests inbound emails from SendGrid. Requires an +email+ parameter containing a full RFC 822 message. # # Authenticates requests using HTTP basic access authentication. The username is always +actionmailbox+, and the diff --git a/app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb b/app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb index 9804f6ec5b..eb96d88691 100644 --- a/app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb +++ b/app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Rails::Conductor::ActionMailbox::InboundEmailsController < Rails::Conductor::BaseController def index @inbound_emails = ActionMailbox::InboundEmail.order(created_at: :desc) diff --git a/app/controllers/rails/conductor/action_mailbox/reroutes_controller.rb b/app/controllers/rails/conductor/action_mailbox/reroutes_controller.rb index 6191bda5e5..c53203049b 100644 --- a/app/controllers/rails/conductor/action_mailbox/reroutes_controller.rb +++ b/app/controllers/rails/conductor/action_mailbox/reroutes_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Rerouting will run routing and processing on an email that has already been, or attempted to be, processed. class Rails::Conductor::ActionMailbox::ReroutesController < Rails::Conductor::BaseController def create diff --git a/app/controllers/rails/conductor/base_controller.rb b/app/controllers/rails/conductor/base_controller.rb index cfa0b84963..c95a7f3b93 100644 --- a/app/controllers/rails/conductor/base_controller.rb +++ b/app/controllers/rails/conductor/base_controller.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # TODO: Move this to Rails::Conductor gem class Rails::Conductor::BaseController < ActionController::Base layout "rails/conductor" |