From f6aa505526a83ec45b6db942cef9be0e2277932f Mon Sep 17 00:00:00 2001 From: Raimundo Herrera Date: Sun, 16 Feb 2020 13:46:20 -0300 Subject: [PATCH] fix(api): include error concern regardless of the environment closes #235 --- CHANGELOG.md | 1 + lib/potassium/assets/api/base_controller.rb | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) 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