README.rdoc in merit-0.2.0 vs README.rdoc in merit-0.2.1
- old
+ new
@@ -26,10 +26,12 @@
* :+badge+ for badge name
* :+level+ for badge level
* :+to+: method name over target_object which obtains user to badge.
* :+temporary+ (boolean): if the condition doesn't hold and the receiver had
the badge, it gets removed. +false+ by default (badges are kept forever).
+* :+model_name+ (string): when controller's name differs from the model being
+ worked (like RegistrationsController for User model).
* &+block+
* empty (always grants)
* a block which evaluates to boolean (recieves target object as parameter)
* a block with a hash composed of methods to run on the target object with
expected values
@@ -123,9 +125,11 @@
= To-do list
* Test points granting with different options.
+* Test model_name attribute for badge_rules.
+* Add model_name option on rank and point rules.
* Ranking should not be badges, so .badges doesn't return them (2-stars shouldn't be badge).
* grep -r 'FIXME\|TODO' .
* :value parameter (for star voting for example) should be configurable (depends
on params[:value] on the controller).
* Make fixtures for integration testing (now creating objects on test file!).