Changes aasm_state_with_scope to support Rails 4 scopes