From 95b49895593124d9be37ccfbee0f06229e7f4a5b Mon Sep 17 00:00:00 2001 From: slainer68 Date: Tue, 10 May 2011 16:11:28 +0200 Subject: Puts ActiveRecord::SessionStore attributes in white list, fixes #483 --- activerecord/lib/active_record/session_store.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/session_store.rb b/activerecord/lib/active_record/session_store.rb index 7e77aefb21..98e21db908 100644 --- a/activerecord/lib/active_record/session_store.rb +++ b/activerecord/lib/active_record/session_store.rb @@ -83,6 +83,8 @@ module ActiveRecord cattr_accessor :data_column_name self.data_column_name = 'data' + attr_accessible :session_id, :data, :marshaled_data + before_save :marshal_data! before_save :raise_on_session_data_overflow! -- cgit v1.2.3