Skip to content

Commit 4265c6d

Browse files
Go TAKEUCHIpkuczynski
authored andcommitted
Padrino should respond to env and root (#186)
1 parent b35f4af commit 4265c6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/config/integrations/sinatra.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def self.registered(app)
1414

1515
# use Padrino settings if applicable
1616
if defined?(Padrino)
17-
env = Padrino.env
18-
root = Padrino.root
17+
env = Padrino.env if Padrino.respond_to?(:env)
18+
root = Padrino.root if Padrino.respond_to?(:root)
1919
end
2020

2121
Config.load_and_set_settings(Config.setting_files(File.join(root, 'config'), env))

0 commit comments

Comments
 (0)