Skip to content

Commit

Permalink
preload gateway to auth_logs instead of includes
Browse files Browse the repository at this point in the history
  • Loading branch information
gigorok committed Jan 14, 2019
1 parent 58b91a2 commit 182cdd0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/admin/cdr/auth_logs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@
scope :successful, show_count: false
scope :failed, show_count: false

includes :gateway, :pop, :node, :transport_protocol, :origination_protocol
# includes :gateway, :pop, :node, :transport_protocol, :origination_protocol
controller do
def scoped_collection
super.preload(:gateway, :pop, :node, :transport_protocol, :origination_protocol)
end
end

index do
id_column
Expand Down

0 comments on commit 182cdd0

Please sign in to comment.