app/controllers/admin/pages_controller.rb in fullstack-cms-0.2.5 vs app/controllers/admin/pages_controller.rb in fullstack-cms-0.2.6

- old
+ new

@@ -1,9 +1,14 @@ class Admin::PagesController < Admin::BaseController respond_to :html, :js def index - @pages = Page.all + @pages = Page.order("created_at") + if Fullstack::Cms.localized? + @pages = @pages.where(:locale => params[:locale]) + @locale = params[:locale] + end + @skip_filter = true end def edit end \ No newline at end of file