lib/databasedotcom/sobject/sobject.rb in databasedotcom-1.0.5 vs lib/databasedotcom/sobject/sobject.rb in databasedotcom-1.0.6
- old
+ new
@@ -5,10 +5,10 @@
cattr_accessor :client
extend ActiveModel::Naming if defined?(ActiveModel::Naming)
# Returns a new Sobject. The default values for all attributes are set based on its description.
def initialize(attrs = {})
- super
+ super()
self.class.description["fields"].each do |field|
self.send("#{field["name"]}=", field["defaultValueFormula"])
end
self.attributes=(attrs)
end
\ No newline at end of file