Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (40 sloc) 2.07 KB
[ ] remove on_transition hook and introduce before_transition and after_transition,
so that it removes any ambiguities on when it is fired, and means we can
use it for bang method saving w/ AR integration, which leads to:
[ ] allow 'chaining' of before_transition/after_transition, so we can add extra
filters as we need to 'behind the scenes', or something
[ ] push active record integration, and binding, out into it's own class
[ ] look into the method missing w/ bind, and see if my idea why swallowing
was occuring was correct, and then remedy it (i don't like the method list
solution, mostly because i rally against all this 'method missing is bad'
rhetoric, hehe
[ ] really, really properly dry up the tests, beacuse they damn suck at present,
and make sure we don't loose any thoroughness in the test suite
[ ] see if we can make halt! and halt return execution from the 'action', and
if we can't, then maybe use 'return halt', and put that in the readme as
the convention of how to 'return on a halt condition', or something, even
maybe that railsismy thingo 'render 'blah' and return', maybe that's ok
[ ] w/ AR integration, work states into named scope :)
[ ] make a demo app w/ an autogenerated UI w/ the meta junk, for kicks
[ ] AR integration, allow custom state field
[ ] do we have predicate methods? i.e. @item.pending_review? @item.approved?
[ ] look into the reflection API, and maybe, stop returning symbols, or something...
[ ] use my modelling library for internal classes, hooray.
[ ] refactor library to make me look good
is that it? (nope):
[ ] make it in to a gem
[ ] make sure you can install it as a rails plugin
[ ] give the readme some working over with brass knucles
is that it now??!
[ ] we need a method in actions, so we can omit transitions_to, so we can transition
from one event to an arbitrary state, i.e.
state :new
event :create do
if valid?
transition_to :valid
transition_to :invalid
is that really it now??!