app/models/katello/puppet_module.rb in katello-3.1.0.1 vs app/models/katello/puppet_module.rb in katello-3.2.0.rc1

- old
+ new

@@ -71,11 +71,10 @@ end end end def update_from_json(json) - keys = %w(name author title version summary) - custom_json = json.clone.delete_if { |key, _value| !keys.include?(key) } + custom_json = json.slice('name', 'author', 'title', 'version', 'summary') self.update_attributes!(custom_json) end private