README.markdown in houdini-0.3.1 vs README.markdown in houdini-0.3.2
- old
+ new
@@ -32,11 +32,11 @@
:image_size => "100x100" # just send this string
},
:on => :after_create,
:on_task_completion => :process_image_moderation_answer
- def process_image_moderation_answer(params)
+ def process_image_moderation_answer(params, verbose={})
update_attribute :flagged => params[:category] == 'flagged'
end
end
# Usage
@@ -46,12 +46,12 @@
* `blueprint` - The name of the Houdini blueprint to use. Must be symbol or string.
* `options` - Hash of options to use.
## Options
* `:input` - Required. Hash: any task specific info needed to populate your blueprint. Keys must match the blueprint's required input, and values must a `Symbol` of the method to call, a lambdas/procs to be called in the model's context, or just a value to send along.
-* `:on_task_completion` - Method that should be called when the answer is posted back to your app. Can by a symbol or a lambda/proc. The method will be called with a hash of the returned output from Houdini.
+* `:on_task_completion` - Method that should be called when the answer is posted back to your app. Can be a symbol or a lambda/proc. The method will be called with a hash of the returned output from Houdini.
* `:on` - Name of a callback to use in order to trigger the submission to Houdini. Must be a symbol/string. If you don't want to use a callback, call the model instance's `houdini_submit_#{blueprint}!` method, where `blueprint` is the first argument you provided for the `houdini` method.
-* `:after_submit` - Method that should be called after submitting the task to Houdini. Can by a symbol or a lambda/proc.
+* `:after_submit` - Method that should be called after submitting the task to Houdini. Can be a symbol or a lambda/proc.
* `:id_method` - Method to get an identifier for the object. It is `id` by default, but you may want to use `to_param` with your app. Can be a symbol or lambda/proc. Use this in conjunction with `:finder`.
* `:finder` - Method by which to find the model by an identifier. It is `find` by default. Can be a symbol or lambda/proc. Use this in conjunction with `:id_method`.
## Credits