Skip to content

Commit

Permalink
Rails no longer delegates ast to Arel update
Browse files Browse the repository at this point in the history
Delegate directly to Arel to remove Rails 5 deprecation.
See: rails/rails#29619
  • Loading branch information
jmartin-tech committed Apr 24, 2020
1 parent 5944322 commit 2c6ee4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/metasploit/credential/core.rb
Expand Up @@ -276,8 +276,8 @@ class Metasploit::Credential::Core < ApplicationRecord
# @param host_id [Integer]
# @return [String]
def self.cores_from_host(host_id)
left = origin_service_host_id(host_id).ast
right = origin_session_host_id(host_id).ast
left = origin_service_host_id(host_id).arel.ast
right = origin_session_host_id(host_id).arel.ast

Arel::Nodes::UnionAll.new(
left,
Expand Down

0 comments on commit 2c6ee4c

Please sign in to comment.