lib/doorkeeper/engine.rb in doorkeeper-4.0.0.rc2 vs lib/doorkeeper/engine.rb in doorkeeper-4.0.0.rc3
- old
+ new
@@ -1,14 +1,9 @@
module Doorkeeper
class Engine < Rails::Engine
initializer "doorkeeper.params.filter" do |app|
- app.config.filter_parameters += [:client_secret, :code, :token]
- end
-
- initializer "doorkeeper.locales" do |app|
- if app.config.i18n.fallbacks.blank?
- app.config.i18n.fallbacks = [:en]
- end
+ parameters = %w(client_secret code authentication_token access_token refresh_token)
+ app.config.filter_parameters << /^(#{Regexp.union parameters})$/
end
initializer "doorkeeper.routes" do
Doorkeeper::Rails::Routes.install!
end