Permalink
Browse files

readability is hip

  • Loading branch information...
1 parent ba0d2a9 commit 4e6cf429a16ce824b18bb8f494dbcbf5931a615d @tenderlove tenderlove committed Jul 21, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 activerecord/lib/active_record/session_store.rb
View
6 activerecord/lib/active_record/session_store.rb
@@ -238,8 +238,10 @@ def drop_table!
# 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?

0 comments on commit 4e6cf42

Please sign in to comment.