Sarik_Kumpan

class Movie < ActiveRecord::Base

Dec 10th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.29 KB | None | 0 0
  1. class Movie < ActiveRecord::Base
  2.   attr_accessible :title, :rating, :description, :release_date
  3.   Tmdb::Api.key("a570a78b0ab53627642026d15d187023")
  4.   Tmdb::Api.language("en")
  5.  
  6.   def self.find_in_tmdb(string, select_page)
  7.       Tmdb::Search.movie(string, page: select_page)
  8.   end
  9.  
  10. end
Add Comment
Please, Sign In to add comment