diff options
Diffstat (limited to 'app/controllers/referentials_controller.rb')
| -rw-r--r-- | app/controllers/referentials_controller.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb index 6957479df..78d55f94b 100644 --- a/app/controllers/referentials_controller.rb +++ b/app/controllers/referentials_controller.rb @@ -1,6 +1,7 @@ class ReferentialsController < BreadcrumbController defaults :resource_class => Referential - before_action :check_policy, :only => [:edit, :update] + include PolicyChecker + before_action :check_policy, :only => [:edit, :update] # overrides default respond_to :html respond_to :json, :only => :show @@ -117,10 +118,6 @@ class ReferentialsController < BreadcrumbController %w[asc desc].include?(params[:direction]) ? params[:direction] : 'asc' end - def check_policy - authorize resource - end - def referential_params params.require(:referential).permit( :id, |
