Skip to content

Commit

Permalink
Fix dump set in Moysklad::Entity::Base initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
dapi committed Nov 17, 2023
1 parent 503047a commit ef860ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/moysklad/entities/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ def self.build(data, universe)
entity
end

def initialize(data = {})
super data.merge(dump: data)
end

def to_json(*args)
presented = {}
to_h.each_pair do |k, v|
Expand Down

0 comments on commit ef860ca

Please sign in to comment.