We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b35f4af commit 4265c6dCopy full SHA for 4265c6d
1 file changed
lib/config/integrations/sinatra.rb
@@ -14,8 +14,8 @@ def self.registered(app)
14
15
# use Padrino settings if applicable
16
if defined?(Padrino)
17
- env = Padrino.env
18
- root = Padrino.root
+ env = Padrino.env if Padrino.respond_to?(:env)
+ root = Padrino.root if Padrino.respond_to?(:root)
19
end
20
21
Config.load_and_set_settings(Config.setting_files(File.join(root, 'config'), env))
0 commit comments