From 952ce40ff9080989278d255ff68bf82c58c3dab1 Mon Sep 17 00:00:00 2001 From: Tute Costa Date: Mon, 12 Mar 2012 17:34:01 -0300 Subject: [PATCH] White listing all Impression attributes according to new Rails active_record.whitelist default. --- app/models/impression.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/impression.rb b/app/models/impression.rb index 98c3b33..25f8aeb 100644 --- a/app/models/impression.rb +++ b/app/models/impression.rb @@ -3,6 +3,10 @@ class Impression < ActiveRecord::Base after_save :update_impressions_counter_cache + attr_accessible :impressionable_type, :impressionable_id, :user_id, + :controller_name, :action_name, :view_name, :request_hash, :ip_address, + :session_hash, :message, :referrer + private def update_impressions_counter_cache