Skip to content

Commit

Permalink
Remove include block from transaction controller
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Dec 29, 2018
1 parent 21fc8e2 commit 92fe6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/transactions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def index
}

# FIXME: should be order by block_number and index desc, change block_number to integer
transactions = Transaction.includes(:block).ransack(options).result.order(updated_at: :desc)
transactions = Transaction.ransack(options).result.order(updated_at: :desc)

if params[:page].nil? && (!params[:offset].nil? || !params[:limit].nil?)
offset = params[:offset] || 0
Expand Down

0 comments on commit 92fe6a2

Please sign in to comment.