Skip to content


DefaultScope plugin 0.5 released

The DefaultScope plugin 0.5 has been released!

http://cfwheels.org/plugins/listing/23
http://github.com/illuminerdi/DefaultScope

The DefaultScope plugin adds the same functionality to Wheels found in Rails’ ActiveRecord::Base#default_scope. Go ahead and check the documentation on either the Github or CFWheels plugin pages.

Features:
* defaultScope() takes all of the same options as findAll() and stores them for a specific model
* findAll() now pulls in defaultScope values and uses them if not manually overridden

This is my first plugin and I probably did something wrong somewhere. Thanks to James Gibson for helping me tackle a particularly odd issue with CF8. Please try it out, and let me know if you have any problems or suggestions. It’s pretty bare-bones, but it does what it says.

Also, in an odd twist, my first plugin is the 23rd listed on CFWheels, which happens to be my favorite number. Weird.

Posted in coldfusion.

Tagged with , , .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.