Skip to content

Commit

Permalink
Undo some Style/SymbolProc Rubocop fixes
Browse files Browse the repository at this point in the history
Undoing some changes from commit bda5b6e
  • Loading branch information
aaronskiba committed Jul 4, 2024
1 parent 9da8368 commit 3ff9ddd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/org.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Org < ApplicationRecord
before_validation :check_for_missing_logo_file

# This gives all managed orgs api access whenever saved or updated.
before_save :ensure_api_access, if: lambda(&:managed?)
before_save :ensure_api_access, if: ->(org) { org.managed? }

# If the physical logo file is no longer on disk we do not want it to prevent the
# model from saving. This typically happens when you copy the database to another
Expand Down
2 changes: 1 addition & 1 deletion app/models/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Template < ApplicationRecord
# overwriting the accessors. We want to ensure this template is published
# before we remove the published_version
# That being said, there's a potential race_condition where we have multiple-published-versions
after_update :reconcile_published, if: lambda(&:published?)
after_update :reconcile_published, if: ->(template) { template.published? }

# ==========
# = Scopes =
Expand Down

0 comments on commit 3ff9ddd

Please sign in to comment.