diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-08-14 10:06:07 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-08-14 10:06:07 +0000 |
commit | d0c83c435459b3fff53075a84411f39707f31325 (patch) | |
tree | ebc406598aa1bedcac8f6442387969398ac0cac4 /actionpack/lib/action_controller/session/active_record_store.rb | |
parent | 7b64c374799aec826a82065cbce74529c79ed2ac (diff) | |
download | rails-d0c83c435459b3fff53075a84411f39707f31325.tar.gz rails-d0c83c435459b3fff53075a84411f39707f31325.tar.bz2 rails-d0c83c435459b3fff53075a84411f39707f31325.zip |
Fix failing active record store tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/session/active_record_store.rb')
-rw-r--r-- | actionpack/lib/action_controller/session/active_record_store.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/session/active_record_store.rb b/actionpack/lib/action_controller/session/active_record_store.rb index cbd5422af1..c268cc1937 100644 --- a/actionpack/lib/action_controller/session/active_record_store.rb +++ b/actionpack/lib/action_controller/session/active_record_store.rb @@ -122,13 +122,14 @@ class CGI @data ||= self.class.unmarshal(read_attribute(@@data_column_name)) || {} end + attr_writer :data + # Has the session been loaded yet? def loaded? !! @data end private - attr_writer :data def marshal_data! return false if !loaded? |