Skip to content

Commit

Permalink
fix: params is array AND hash sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dim145 committed Jun 25, 2024
1 parent 8f0d04b commit 9f39a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/mailers/application_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def self.application_url
end

def notify_new_application(params)
args = params[:args]
args = params.is_a?(Array) ? params : params[:args]

activity_application_id = args[0]

Expand Down
2 changes: 1 addition & 1 deletion lib/elvis/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Elvis
VERSION = "2.6.6"
VERSION = "2.6.7"
end

0 comments on commit 9f39a9e

Please sign in to comment.