app/controllers/garage/docs/resources_controller.rb in the_garage-2.3.0 vs app/controllers/garage/docs/resources_controller.rb in the_garage-2.3.1
- old
+ new
@@ -83,10 +83,10 @@
@application = Garage::Docs.application
end
def require_console_application
@app = console_application
- unless @app[:uid] && @app[:secret]
+ if @app[:uid].blank? || @app[:secret].blank?
render(text: 'Configuration for console application is missing.', status: :forbidden)
end
end
def require_document