lib/contrast/utils/sinatra_helper.rb in contrast-agent-3.8.5 vs lib/contrast/utils/sinatra_helper.rb in contrast-agent-3.9.0

- old
+ new

@@ -31,9 +31,15 @@ views << [public_directory, '*.html', %w[HTML5]] if public_directory views end end + def self.settings_instance + @_settings_instance ||= begin + app_class&.settings + end + end + def self.view_directory @_view_directory ||= begin app_class&.settings&.views end end