mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Fix bug in boards load and destroy belonging posts when destroying board
This commit is contained in:
@@ -10,6 +10,6 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
def load_boards
|
||||
@boards = Board.all.only(:id, :name)
|
||||
@boards = Board.select(:id, :name).order(order: :asc)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user