시나 프로젝트가 경고 인상 경고시나 트랜잭션 콜백에서 :액티브 액티브 보석과
DEPRECATION WARNING: Currently, Active Record suppresses errors raised
within `after_rollback`/`after_commit` callbacks and only print them
to the logs. In the next version, these errors will no longer be
suppressed. Instead, the errors will propagate normally just like in
other Active Record callbacks.
You can opt into the new behavior and remove this warning by setting:
**config.active_record.raise_in_transactional_callbacks = true**
이 Gemfile.lock이
activemodel (4.2.0)
activesupport (= 4.2.0)
builder (~> 3.1)
어떻게 제거 할 수 있습니까? 감사!
편집 : 미니 프로젝트는 오류 메시지가 무엇을 알려줍니다 여기 https://gist.github.com/williamhqs/c127e5d7018aa61cb02a
문제를 드러내는 최소한의 Gemfile + sinatra 앱을 게시 할 수 있습니까? 나는 그것을 여기서 재현 할 수 없다. 이것은 내가 시도한 것이다. https://gist.github.com/padde/560c81db91b591ae2d84 –
안녕하세요 @PatrickOscity 문제는 after_commit를 호출 한 후에 발생했습니다. 다음은 샘플 프로젝트입니다. https://gist.github.com/williamhqs/c127e5d7018aa61cb02a –
@PatrickOscity 그냥 요점 클래스 인 Student