converted ActiveSupport's magic into explicit Ruby code
Merge pull request #11 from mattetti/sf-set-state-early

converted ActiveSupport's magic into explicit Ruby code