Guest User

Untitled

a guest
Jan 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. def managefiles
  2. @searchval = ''
  3. @title = ' - Manage Files'
  4. @folder = Painting.select("DISTINCT folder").where(:company_id => current_user.company_id, :deleted => nil, :versioned => nil).order("folder ASC, name ASC")
  5. @allfiles = Painting.select("DISTINCT folder, name, id").where(:company_id => current_user.company_id, :deleted => nil).order("name ASC")
  6. #@allfiles = Painting.select("folder, name, id").order("name DESC")
  7. end
Add Comment
Please, Sign In to add comment