search for: acts_as_modified

Displaying 11 results from an estimated 11 matches for "acts_as_modified".

2006 Jun 27
0
[UPDATE] acts_as_modified 1.1.3 now with tests (was Re: plugin, acts_as_modified 1.1.2)
...gmail.com> wrote: > Where are the tests?!?! And have you run the AR test suite alongside > this plugin? > > -Jonathan. > > On 6/27/06, Chris Hall <christopher.k.hall@gmail.com> wrote: > > After a couple of thoughtful comments, I''ve made changes to > > acts_as_modified plugin. It no longer relies on after_find and > > after_initialize, which were both causing performance issues. > > > > Please check it out and let me know what you think, where you might > > recommend improvements or additional features and what not. > > > > On...
2006 Jul 02
1
acts_as_modified, acts_as_ordered and validates_date_time
A quick note about acts_as_modified, acts_as_ordered and validates_date_time. If you are using any of those plugins you should update them. They''ve all had improvements/bug fixes. Also, acts_as_modified is now being maintained by both Chris Hall and myself. http://svn.viney.net.nz/things/rails/plugins/acts_as_ordered http...
2006 Jun 26
1
plugin, acts_as_modified 1.1.2
After a couple of thoughtful comments, I''ve made changes to acts_as_modified plugin. It no longer relies on after_find and after_initialize, which were both causing performance issues. Please check it out and let me know what you think, where you might recommend improvements or additional features and what not. One feature I do have planned (again, thanks to comments), b...
2006 Jun 21
3
[PLUG] new plugin, acts_as_modified
Nothing special, just my first plugin. it came out of a request I saw on the list from someone who wanted to be able to tell if a model''s attributes had changed prior to being saved. Well, this plugin does just that (at least I hope it does). http://rubyforge.org/projects/actsasmodified/ Please see the README for details. Constructive comments and criticisms are appreciated. Chris
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 12
2
Weird problem. How to tell if an attribute has changed? Please help.
How do you tell if an foreign key attribute has been changed? For example, lets say you have a model with attribute table_a_id. Would you do this? def table_a_id=(value) if value != table_a_id @table_a_changed = true write_attribute ''table_a_id'', value end end def table_a=(value) if value != table_a @table_a_changed = true
2006 Oct 16
6
Double data entry
I''m developing database systems for clinical trials using Ruby on Rails. Some trials require ''double data entry'' as a form of validation; I need to incorporate this into my system and am having difficulties. My plan would be to have it work as follows: - Once a new record has been created, alongside the usual ''edit'' option there would be a
2006 Jul 11
1
Determine if attributes changed?
Is there a way to determine if attributes were changed? Let''s say in the before_save or after_save method? Thanks for your help. Thank You, Ben Johnson E: bjohnson@contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060711/442b20d2/attachment.html
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 Oct 22
5
How to hook into model attribute changes?
Hi, What''s the best way to hook into any changes made to the value of a single model attribute? I need to know when the encrypted_password attribute on my User model changes i.e. when the user has changed their password. I''m not interested in the actual changed value, I just need to know when it''s been changed so that I can regenerate their API key as well. Thanks in
2006 Aug 06
0
Rails Core Weekly July 16 - August 6
...If you''re interested in dirty field checking, concurrency etc this is a very interesting thread to read. Turns out Jeremy Kemper at one point implemented dirty column tracking and Jamis did it on the object level. Also Jonathan seems to have written yet another plugin to make things work(acts_as_modified). [thread: http://www.ruby-forum.com/topic/75313#new ] Caio Chassot poses the question: "Do you really think it''s a good idea to run filters more than once?" Besides from being able to use skip_* this thread discusses the ins and outs as well as performance benchmarks and the...