The behavior switching framework for Rails