Skip to content

Instantly share code, notes, and snippets.

View djuggler's full-sized avatar
🏠

Doug McCaughan djuggler

🏠
View GitHub Profile
@djuggler
djuggler / gist:c065f2d42fdb79cc34b7670a0ceaf339
Created June 20, 2017 16:16
cfwheels update works with named arguments but not always.
----this works----
user = model("users").findByKey(session.user.id);
user.update(status=params.user.status);
----this throws an error----
user = model("users").findAll("(status<2) AND (createdat<='#DateAdd('d',-14, now())#')");
<cfloop query="referee">
user.update(status=status+1);
</cfloop>

Keybase proof

I hereby claim:

  • I am djuggler on github.
  • I am djuggler (https://keybase.io/djuggler) on keybase.
  • I have a public key ASCKF75mmo8h3mf6LdyDEk_1lgiwQg1rYAmOtBIL8TuKIAo

To claim this, I am signing this object: