app/controllers/admin/pages_controller.rb in effective_pages-2.0.8 vs app/controllers/admin/pages_controller.rb in effective_pages-2.0.9

- old
+ new

@@ -99,11 +99,11 @@ end private def authorize_effective_pages! - EffectivePages.authorized?(self, :admin, :effective_pages) - EffectivePages.authorized?(self, action_name.to_sym, @page|| Effective::Page) + EffectivePages.authorize!(self, :admin, :effective_pages) + EffectivePages.authorize!(self, action_name.to_sym, @page || Effective::Page) end def page_params params.require(:effective_page).permit(EffectivePages.permitted_params) end