search for: old_one

Displaying 3 results from an estimated 3 matches for "old_one".

Did you mean: old_mode
2006 May 27
2
ActiveRecord::Base::find_for_create_modify
...he "attributes=". If there is no such object, "new" it with the attributes I''ve got from the form. After I''ve wrote such code the third time, I came up with this more general solution: class ActiveRecord::Base def Base.find_for_create_modify(key, params) old_one = find(key) unless key.nil? if old_one result = find key result.attributes= params else result = new params end [result, old_one] end end But I think, I can''t be the first one, facing this problem. So I wonder if there might be a more ruby/rails-ish way to accomplish...
2020 May 29
15
[RFC 00/12] Audio DSP VirtIO and vhost drivers
This patch set is a follow up to "Add a vhost RPMsg API" [1], it is marked as an RFC because firstly it depends on the RPMsg API series and secondly it is currently being reviewed on ALSA and SOF mailing lists, but any early comments from virtualisation developers would be highly appreciated too! Thanks Guennadi [1]
2020 May 29
15
[RFC 00/12] Audio DSP VirtIO and vhost drivers
This patch set is a follow up to "Add a vhost RPMsg API" [1], it is marked as an RFC because firstly it depends on the RPMsg API series and secondly it is currently being reviewed on ALSA and SOF mailing lists, but any early comments from virtualisation developers would be highly appreciated too! Thanks Guennadi [1]