app/controllers/guts/options_controller.rb in guts-1.4.0 vs app/controllers/guts/options_controller.rb in guts-2.0.0

- old
+ new

@@ -3,13 +3,13 @@ module Guts # Options controller class OptionsController < ApplicationController include ControllerPermissionConcern - load_and_authorize_resource before_action :set_option, only: [:show, :edit, :update, :destroy] before_action :set_per_page, only: [:index] - + load_and_authorize_resource + # Display a list of options def index @options = Option.paginate(page: params[:page], per_page: @per_page) end