Skip to content

Commit

Permalink
fix: remove old defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticspoon committed Sep 7, 2024
1 parent b38fc19 commit 9b434aa
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 236 deletions.
3 changes: 2 additions & 1 deletion app/models/case_court_order.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class CaseCourtOrder < ApplicationRecord
IMPLEMENTATION_STATUSES = {unimplemented: 1, partially_implemented: 2, implemented: 3}
STANDARD_COURT_ORDERS = [
"Birth certificate for the Respondent’s",
"Domestic Violence Education/Group",
Expand Down Expand Up @@ -30,7 +31,7 @@ class CaseCourtOrder < ApplicationRecord

validates :text, presence: true

enum :implementation_status, {unimplemented: 1, partially_implemented: 2, implemented: 3}
enum :implementation_status, IMPLEMENTATION_STATUSES

def self.court_order_options
STANDARD_COURT_ORDERS.map { |o| [o, o] }
Expand Down
2 changes: 1 addition & 1 deletion app/models/followup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Followup < ApplicationRecord
belongs_to :case_contact
has_one :casa_org, through: :case_contact
belongs_to :creator, class_name: "User"
enum status: {requested: 0, resolved: 1}
enum :status, {requested: 0, resolved: 1}

validate :uniqueness_of_requested

Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
module Casa
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 7.1
config.load_defaults 7.2

# Please, add to the `ignore` list any other `lib` subdirectories that do
# not contain `.rb` files, or that should not be reloaded or eager loaded.
Expand Down
223 changes: 0 additions & 223 deletions config/initializers/new_framework_defaults_7_1.rb

This file was deleted.

18 changes: 8 additions & 10 deletions lib/mailers/debug_preview_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
module Mailers
class DebugPreviewMailer < ActionMailer::Base
def invalid_user(role)
mail(
from: 'reply@example.com',
to: "missing_#{role}@example.com",
subject: 'invalid_user_id',
body: "User does not exist or is not a #{role}"
)
end
class DebugPreviewMailer < ActionMailer::Base
def invalid_user(role)
mail(
from: 'reply@example.com',
to: "missing_#{role}@example.com",
subject: 'invalid_user_id',
body: "User does not exist or is not a #{role}"
)
end
end

0 comments on commit 9b434aa

Please sign in to comment.