Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. class MovieProduction < ApplicationRecord
  2. def self.search_by_title(title)
  3. where('title ILIKE ?', "#{sanitize_sql_like(title)}%") }
  4. end
  5. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement