lib/kentaa/api/resources/actions.rb in kentaa-api-0.4.0 vs lib/kentaa/api/resources/actions.rb in kentaa-api-0.5.0

- old
+ new

@@ -9,11 +9,11 @@ def each(&block) actions.each(&block) end def create(attributes = {}) - action = Kentaa::Api::Resources::Action.new(config, options) + action = Kentaa::Api::Resources::Action.new(config, options: options) action.save(attributes) end private @@ -25,10 +25,10 @@ @actions ||= begin actions = [] if data data.each do |action| - actions << Kentaa::Api::Resources::Action.new(config, data: action) + actions << Kentaa::Api::Resources::Action.new(config, data: action, options: options) end end actions end