Method: Job#update_attributes_with_properties

Defined in:
app/models/job.rb

#update_attributes_with_properties(params) ⇒ Object



92
93
94
95
# File 'app/models/job.rb', line 92

def update_attributes_with_properties(params)
  params.slice(:name, *self.class.property_names).each {|key, value| send("#{key}=", value) }
  tap(&:save)
end