Updated Rails to 4.1.0
Added workaround for state_machine