lib/enceladus/models/movie.rb in enceladus-0.0.3 vs lib/enceladus/models/movie.rb in enceladus-0.0.4

- old
+ new

@@ -18,11 +18,11 @@ # Find movies by title. # Example: # Enceladus::Movie.find_by_title("emmanuelle") # def self.find_by_title(title) - Enceladus::MovieCollection.new("search/movie", { query: title }) + Enceladus::MovieCollection.new("search/movie", default_params.merge(query: title)) end # Returns a paginated collection of upcoming movies. # Resources are paginates and respond to methods such as: next_page, all, previous_page, etc... # Examples: @@ -154,9 +154,10 @@ self.youtube_trailers=(resource_from_response.trailers) end end def self.default_params - include_image_language = Enceladus::Configuration::Image.instance.include_image_language - { append_to_response: "releases,trailers", include_image_language: include_image_language } + language = Enceladus::Configuration::Image.instance.include_image_language + adult = Enceladus::Configuration::Api.instance.include_adult + { append_to_response: "releases,trailers", include_image_language: language, language: language, include_adult: adult } end end