Andrew Kane пре 10 година
родитељ
комит
ead9bef485
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/controllers/blazer/queries_controller.rb

+ 1 - 1
app/controllers/blazer/queries_controller.rb

@@ -15,7 +15,7 @@ module Blazer
     before_action :set_query, only: [:show, :edit, :update, :destroy]
 
     def index
-      @queries = Blazer::Query.order(:name)
+      @queries = Blazer::Query.order(:name).includes(:creator)
     end
 
     def new