lib/nimbu-api/endpoints/themes/layouts.rb in nimbu-api-0.4.0 vs lib/nimbu-api/endpoints/themes/layouts.rb in nimbu-api-0.4.1

- old
+ new

@@ -1,14 +1,17 @@ # encoding: utf-8 - module Nimbu module Endpoints class Themes::Layouts < Endpoint def create(*args) arguments(args, :required => [:theme_id]) - post_request("/themes/#{theme_id}/layouts", arguments.params) + forced = arguments.params.delete("force") + query_params = {} + query_params = {force: forced} unless forced.nil? + + post_request("/themes/#{theme_id}/layouts", arguments.params, params: query_params) end def get(*args) arguments(args, :required => [:theme_id, :layout_id])