Do not have an association named update #2722

Closed
ghost opened this Issue Aug 28, 2011 · 2 comments

Comments

Projects
None yet
1 participant
@ghost

ghost commented Aug 28, 2011

I had two ActiveRecord classes:

class Slug < ActiveRecord::Base
  belongs_to :update
end

class Update < ActiveRecord::Base
  has_many :slugs
end

Then I found that

slug = Slug.find 1
slug.content = "modified"
slug.save

would return true, but would load the association (whichever update object the slug belongs to) rather than actually doing an SQL UPDATE to modify the database.

@isaacsanders

This comment has been minimized.

Show comment Hide comment
@isaacsanders

isaacsanders Apr 28, 2012

Contributor

@tractionlabs Is this still an issue?

Contributor

isaacsanders commented Apr 28, 2012

@tractionlabs Is this still an issue?

@ghost

This comment has been minimized.

Show comment Hide comment
@ghost

ghost Apr 28, 2012

Just tested against 3-2-stable, and found that this has been fixed.

ghost commented Apr 28, 2012

Just tested against 3-2-stable, and found that this has been fixed.

@ghost ghost closed this Apr 28, 2012

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment