lib/rails_config/integration/sinatra.rb in rails_config-0.2.2 vs lib/rails_config/integration/sinatra.rb in rails_config-0.2.3
- old
+ new
@@ -1,5 +1,7 @@
+require "rails_config/rack/reloader"
+
module RailsConfig
# provide helper to register within your Sinatra app
#
# set :root, File.dirname(__FILE__)
# register RailsConfig
@@ -20,10 +22,10 @@
File.join(root.to_s, "config", "settings.yml").to_s,
File.join(root.to_s, "config", "settings", "#{env}.yml").to_s,
File.join(root.to_s, "config", "environments", "#{env}.yml").to_s
)
- inner_app.use(Rack::Reloader) if inner_app.development?
+ inner_app.use(::RailsConfig::Rack::Reloader) if inner_app.development?
end
end
end
\ No newline at end of file