当这些属性值位于包含通常模型属性值以及其他键值对(即不属于模型)?
情况如下所示:
# 1. Get the user from the db:
@user = User.where(id: 1).first
# 2. Add some additional data from a hash inside the session
@user = @user.somehow_extract_the_values_for_the_model_from(session[:some_big_hash])