Displaying 3 results from an estimated 3 matches for "acts_as_changed".
2006 Aug 06
1
ActiveRecord: determine if attribute has changed since save
Hello there,
i need to determine whether an attribute of my model has changed since the
last time it was saved. how can i do this?
greets
--
Michael Siebert <info@siebert-wd.de>
www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jul 27
25
Why are has_one objects resaved when the parent is saved?
If the associated object of a has_one association has been loaded, it
is resaved when the parent is saved. Eg:
class Person < ActiveRecord::Base
has_one :user
end
class User < ActiveRecord::Base
belongs_to :person
end
p = Person.find(:first)
p.save # As expected, nothing happens with the user association
p.user # Loads the associated object
p.save # As well as saving the person, the
2007 Mar 01
9
Active Record proposal/discussion for improvement
Hello,
I have started in "Ruby on Rails: Talk" a discussion about my problems
with current ActiveRecord implementation. Please take a look here:
http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/d40b754fc5872a99/47cff815df123b8a?lnk=gst&rnum=2
Regards
Oliver Paulus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are