Skip to content

Commit

Permalink
Show deprected assets at end of list
Browse files Browse the repository at this point in the history
  • Loading branch information
mbiang committed Sep 20, 2019
1 parent cd235bf commit 7b550cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/extensions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def webhook
def select_default_version
version = @extension.extension_versions.find_by(id: params[:extension_version_id])
version_id = version.present? ? version.id : nil
@extension.update_column(:selected_version_id, version_id)
@extension.update_column(:selected_version_id, version_id)
redirect_to owner_scoped_extension_url(@extension), notice: t("extension.default_version_selected")
end

Expand All @@ -380,7 +380,7 @@ def qualify_scope(scope, params)
end

if params[:order].blank? && params[:q].blank?
scope = scope.order(:name)
scope = scope.order(deprecated: :asc, name: :asc)
end

if params[:supported_platform_id].present?
Expand Down

0 comments on commit 7b550cf

Please sign in to comment.