mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
readability is hip
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user