Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MovieProduction < ApplicationRecord
- def self.search_by_title(title)
- where('title ILIKE ?', "#{sanitize_sql_like(title)}%") }
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement