lib/billomat/models/base.rb in billomat-0.1.1 vs lib/billomat/models/base.rb in billomat-0.1.2
- old
+ new
@@ -43,10 +43,10 @@
# Persists the current object in the API.
# When record is new it calls create, otherwise it saves the object.
#
# @return [TrueClass]
def save
- return create if id.blank?
+ return create if id.nil?
update
end
# @return [TrueClass]
def create