lib/jsonapi/resource.rb in jsonapi-resources-0.3.0 vs lib/jsonapi/resource.rb in jsonapi-resources-0.3.1
- old
+ new
@@ -44,10 +44,10 @@
else
run_callbacks is_new? ? :create : :update do
@changing = true
run_callbacks callback do
yield
- save if @save_needed
+ save if @save_needed || is_new?
end
end
end
end