Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def self.find_available
- find(:all, :joins => "inner join inventories on spaces.id=inventories.billable_id",
- :conditions => ["inventories.stock_qty > ? and inventories.billable_type = ?",0,"Space"], :order => "row,col")
- end
Add Comment
Please, Sign In to add comment