Plugins - Dynamic Finders with Belongs To Names

StarAdd to favorites

This plugin enhances dynamic finders to allow use of a belongs_to association name instead of having to use the foreign key attribute directly. For example, these two lines are equivalent:

  posts = Post.find_all_by_author_id(author.id)
  posts = Post.find_all_by_author(author)

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?