Displaying 2 results from an estimated 2 matches for "default_ord".
Did you mean:
default_irq
2005 Dec 26
2
Dynamic order on has_many relationship?
...AR:B
has_many :products, :order => "product_id"
has_many :products_by_desc, :class_name => "Product", :order =>
"description"
has_many :products_by_gtin, :class_name => "Product", :order => "gtin"
end
If I had a column that was default_order on the Category, could it
evaluate it and set the :order at the model level, or do I go in and
get my record set and hardcode which relationship matches which value
of the column?
Thanks,
Chris Nolan.ca
http://kekova.ca/
2007 May 29
0
Fw: [RFC] makedumpfile: xen extraction
...ing_dumpfile(info))
+ goto out;
+
+ MSG("\n");
+ MSG("The dumpfile is saved to %s.\n", info->name_dumpfile);
+
+ return COMPLETED;
+out:
+ return FALSE;
+}
+
int
main(int argc, char *argv[])
{
@@ -4152,7 +4571,7 @@
vt = &info->vm_table;
info->block_order = DEFAULT_ORDER;
- while ((opt = getopt(argc, argv, "b:cDd:EFg:hi:Rvx:")) != -1) {
+ while ((opt = getopt(argc, argv, "b:cDd:EFg:hi:RvXx:")) != -1) {
switch (opt) {
case ''b'':
info->block_order = atoi(optarg);
@@ -4191,6 +4610,9 @@
case ''v'':...