From 6d81b4a24b7bd5b4d8bc5955dd8650d94b921a49 Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 28 Dec 2014 21:14:10 +0100 Subject: [PATCH] FUCK this!!!!! --- app/controllers/application_controller.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 12a5041b..f02cdaa6 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -4,11 +4,9 @@ class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_filter :configure_permitted_parameters, if: :devise_controller? - - def privileged?(user) - (current_user && (current_user == user || current_user.admin?)) ? true : false - end - + + include ApplicationHelper + protected def configure_permitted_parameters