Guest User

Untitled

a guest
May 17th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def self.find_available
  2. find(:all, :joins => "inner join inventories on spaces.id=inventories.billable_id",
  3. :conditions => ["inventories.stock_qty > ? and inventories.billable_type = ?",0,"Space"], :order => "row,col")
  4. end
Add Comment
Please, Sign In to add comment