diff --git a/app/controllers/devise_token_auth/registrations_controller.rb b/app/controllers/devise_token_auth/registrations_controller.rb index 2ddf9e154..edb154287 100644 --- a/app/controllers/devise_token_auth/registrations_controller.rb +++ b/app/controllers/devise_token_auth/registrations_controller.rb @@ -9,10 +9,9 @@ def create build_resource unless @resource.present? - raise(DeviseTokenAuth::Errors::NoResourceDefinedError, <<~MSG) - #{self.class.name} #build_resource does not define @resource, - execution stopped. - MSG + raise DeviseTokenAuth::Errors::NoResourceDefinedError, + "#{self.class.name} #build_resource does not define @resource,"\ + ' execution stopped.' end # give redirect value from params priority