app/controllers/locomotive/api/pages_controller.rb in locomotive_cms-2.4.1 vs app/controllers/locomotive/api/pages_controller.rb in locomotive_cms-2.5.0.rc1
- old
+ new
@@ -1,9 +1,9 @@
module Locomotive
module Api
class PagesController < BaseController
- load_and_authorize_resource class: Locomotive::Page, through: :current_site
+ load_and_authorize_resource class: ::Locomotive::Page, through: :current_site
def index
@pages = @pages.order_by(:depth.asc, :position.asc)
respond_with(@pages)
end