diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-21 16:45:38 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-21 16:45:38 -0700 |
commit | 4e6cf429a16ce824b18bb8f494dbcbf5931a615d (patch) | |
tree | 4fdd508c4b7941dfcc6403826e3a7606a63b9682 /activerecord | |
parent | ba0d2a9ce374df69647a8280459d59000ce43188 (diff) | |
download | rails-4e6cf429a16ce824b18bb8f494dbcbf5931a615d.tar.gz rails-4e6cf429a16ce824b18bb8f494dbcbf5931a615d.tar.bz2 rails-4e6cf429a16ce824b18bb8f494dbcbf5931a615d.zip |
readability is hip
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/session_store.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/session_store.rb b/activerecord/lib/active_record/session_store.rb index cc8d697dde..a0a9368c12 100644 --- a/activerecord/lib/active_record/session_store.rb +++ b/activerecord/lib/active_record/session_store.rb @@ -238,8 +238,10 @@ module ActiveRecord # telling us to postpone unmarshaling until the data is requested. # We need to handle a normal data attribute in case of a new record. def initialize(attributes) - @session_id, @data, @marshaled_data = attributes[:session_id], attributes[:data], attributes[:marshaled_data] - @new_record = @marshaled_data.nil? + @session_id = attributes[:session_id] + @data = attributes[:data] + @marshaled_data = attributes[:marshaled_data] + @new_record = @marshaled_data.nil? end def new_record? |