def self.capture_system(*args)
args = args.flatten.compact.collect { |arg| arg.to_s }
return false if args.blank?
...
class Asset < ActiveRecord::Base belongs_to :account belongs_to :asset_type ...
Ruby Advanced search form & ...
by Erez Ben Shoham,
March 16, 2009 11:33,
3 refactorings, tagged with search, form, model, named_scope
I have an Asset model in a ...
Is there a shorter way to d...