app/controllers/admin/pages_controller.rb in effective_pages-0.9.9 vs app/controllers/admin/pages_controller.rb in effective_pages-1.0.0

- old
+ new

@@ -6,16 +6,10 @@ def index @page_title = 'Pages' EffectivePages.authorized?(self, :index, Effective::Page) - if request.format.json? - # This is actually the effective_menus dialog asking for all @pages - render :json => ([['', '']] + Effective::Page.order(:title).map { |page| [page.title, page.id] }).to_json - return - else - @datatable = Effective::Datatables::Pages.new() if defined?(EffectiveDatatables) - end + @datatable = Effective::Datatables::Pages.new() if defined?(EffectiveDatatables) end def new @page = Effective::Page.new() @page_title = 'New Page'