lib/spark_api/models/base.rb in spark_api-1.3.23 vs lib/spark_api/models/base.rb in spark_api-1.3.24

- old
+ new

@@ -123,9 +123,13 @@ def persisted?; !@attributes['Id'].nil? && !@attributes['ResourceUri'].nil? end + def to_param + attributes['Id'] + end + protected def write_attribute(attribute, value) attribute = attribute.to_s unless attributes[attribute] == value