Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Commit

Permalink
Made some api changes that improve consistency and usefulness of thev…
Browse files Browse the repository at this point in the history
…alidation and error generation process, alowing it to be split in amore logical manner.

Breaking changes include:
* validate method now only returns failure or success, instead of success val with errenous nodes
* state serialization (render,render_json) only returns the the serialized pattern (json or html). This is convenient because it can be invoked at the return call from a view
* removed the update success function because it was essentially a bandaid for this problem
* unified the _gen_validate to all be in validate proper.
* success_header_generate does not operate in the same way, and is now only for return actions from json_render
* error_header_generate is essentially the same, except is should never return anything and doesn't recieve block anymore
* Changed the block key in json response to success for js library interaction
  • Loading branch information
icook committed Sep 29, 2013
1 parent 9048da4 commit c4f928b
Show file tree
Hide file tree
Showing 5 changed files with 189 additions and 298 deletions.

0 comments on commit c4f928b

Please sign in to comment.