rack-autocrud 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- metadata +1 -1
data/README.md
CHANGED
@@ -100,7 +100,7 @@ There are some basic processing hooks you can define in your endpoint:
|
|
100
100
|
|
101
101
|
| Hook | Description |
|
102
102
|
| ------------------------------ | ---------------------------------------------------------------- |
|
103
|
-
| pre_create(env,request
|
103
|
+
| pre_create(env,request) | Called before the record is created |
|
104
104
|
| post_create(env,request,obj) | Called after the record is saved, if it was saved successfully |
|
105
105
|
| pre_retrieve(env,request) | Called before the record is fetched |
|
106
106
|
| post_retrieve(env,request,obj) | Called after the record is fetched |
|
@@ -127,7 +127,7 @@ namely *pre_create* and *pre_update*.
|
|
127
127
|
|
128
128
|
This function is defined as:
|
129
129
|
```ruby
|
130
|
-
def set_request_body(new_body,content_type='text/json')
|
130
|
+
def set_request_body(new_body,content_type='text/json')
|
131
131
|
```
|
132
132
|
|
133
133
|
where *new_body* is expected to be a string.
|