White listing all Impression attributes according to new Rails active_record.whitelist default.

This commit is contained in:
Tute Costa 2012-03-12 17:34:01 -03:00
parent 6a15cbaf3e
commit 952ce40ff9
1 changed files with 4 additions and 0 deletions

View File

@ -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