Guest User

Untitled

a guest
Feb 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. cond = Caboose::EZ::Condition.new do
  2. # if not (params[:filename] ||= nil).to_s.empty?
  3. filename =~ "%" + params[:filename].to_s + "%"
  4. # end
  5. end
  6.  
  7. "condition"=>["filename LIKE ? AND params [] ?", "%filename%", :filename]
Add Comment
Please, Sign In to add comment