Publisher review:DRY up frequent finds - Always be on the lookout for duplicated code Always be on the lookout for duplicated code. If you find yourself doing asset.incomings.find(:all, :limit => 10) in multiple places, then perhaps you need to pull that into a method of its own.
Given the use of the magic number "10", it might not be a bad idea to d"10&q>
DRY up frequent finds is a Ruby script for Snippets scripts design by gnatware.
It runs on following operating system: Windows / Linux.
Operating system:Windows / Linux