OSDN Git Service

API: refactored last fix, project limit in web client is fixed too
authorSebastian Ziebell <sebastian.ziebell@asquera.de>
Thu, 14 Feb 2013 11:58:33 +0000 (12:58 +0100)
committerSebastian Ziebell <sebastian.ziebell@asquera.de>
Thu, 14 Feb 2013 11:58:33 +0000 (12:58 +0100)
commit3025824415184c16f86bb67276474113de48d813
tree2c22c8d50f079e40124942781d29ca9211a3e79e
parent7e45ba700415a180998cee5eb36158727be5f051
API: refactored last fix, project limit in web client is fixed too

The previous call `saved?` is restored in the `POST /projects` method in the API.
It is refactored to check if the record is persisted. This is useful to not validate
the record again after saving. This fixes the returned status code in the web client
too. If the last project is created via web client instead of error notification
the project page is shown.
app/models/project.rb
lib/api/projects.rb