app/controllers/locomotive/api/pages_controller.rb in locomotive_cms-2.0.3 vs app/controllers/locomotive/api/pages_controller.rb in locomotive_cms-2.1.0
- old
+ new
@@ -3,10 +3,10 @@
class PagesController < BaseController
load_and_authorize_resource class: Locomotive::Page, through: :current_site
def index
- @pages = @pages.order_by([[:depth, :asc], [:position, :asc]])
+ @pages = @pages.order_by(:depth.asc, :position.asc)
respond_with(@pages)
end
def show
respond_with(@page)