diff --git a/CHANGELOG.md b/CHANGELOG.md index 38e66848..d6a20688 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ Fix: - Correctly use cache for bundle dependencies in CircleCI build [#244](https://github.com/platanus/potassium/pull/244) and [#258](https://github.com/platanus/potassium/pull/258) - Fix model auto annotate [#260](https://github.com/platanus/potassium/pull/260) - Fix sidekiq repeated installation on potassium create if selecting mailer [#262](https://github.com/platanus/potassium/pull/262) + - Include ApiErrorConcern in all environments [#270](https://github.com/platanus/potassium/pull/270) ## 5.2.3 diff --git a/lib/potassium/assets/api/base_controller.rb b/lib/potassium/assets/api/base_controller.rb index 2839f31f..58f85aa0 100644 --- a/lib/potassium/assets/api/base_controller.rb +++ b/lib/potassium/assets/api/base_controller.rb @@ -1,7 +1,5 @@ class Api::V1::BaseController < ApplicationController - if Rails.env.production? - include ApiErrorConcern - end + include ApiErrorConcern self.responder = ApiResponder