mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 14:31:25 +00:00
No Rswag in prod
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "rswag/specs"
|
||||
begin
|
||||
require "rswag/specs"
|
||||
rescue LoadError
|
||||
# rswag is not available in this environment (likely production where
|
||||
# rswag is in the test/development group). Skip loading rswag rake
|
||||
# tasks so `rake -P` can run during asset precompilation / deploy.
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user