Mass assignment weirdness pt 2 #480

Closed
qoobaa opened this Issue May 10, 2011 · 0 comments

Projects

None yet

2 participants

@qoobaa
Contributor
qoobaa commented May 10, 2011

3.1.0.beta1:

>> Goal.first.invitations.build(nil)
=> nil
>> Goal.first.invitations.new(nil)
=> #<Goal::Invitation id: nil, goal_id: 1>

3.0.7:

>> Goal.first.invitations.build(nil)
=> #<Goal::Invitation id: nil, goal_id: 1>
>> Goal.first.invitations.new(nil)
=> #<Goal::Invitation id: nil, goal_id: 1>

Moreover "build" does not set goal_id attribute properly even if hash given (#479).

@josevalim josevalim closed this in 5fc3564 May 10, 2011
@josevalim josevalim was assigned May 10, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment