Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq/yaml_patch.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.yaml_new(klass, tag, val) ⇒ Object



13
14
15
# File 'lib/sidekiq/yaml_patch.rb', line 13

def self.yaml_new(klass, tag, val)
  klass.unscoped.find(val['attributes'][klass.primary_key])
end

Instance Method Details

#to_yaml_propertiesObject



17
18
19
# File 'lib/sidekiq/yaml_patch.rb', line 17

def to_yaml_properties
  ['@attributes']
end