Skip to content
This repository has been archived by the owner on Mar 5, 2020. It is now read-only.

Commit

Permalink
Rails TLC
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethkalmer committed Jan 6, 2010
1 parent 04d4b55 commit b261345
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/ruote-kit/application.rb
Expand Up @@ -4,8 +4,13 @@
module RuoteKit
class Application < Sinatra::Base

# Delay these a bit
configure do
set :environment, Rails.env if defined?( Rails )
# We want to support Rails
if defined?( Rails )
set :environment, Rails.env
disable :raise_errors
end

RuoteKit.ensure_engine!
end
Expand Down

0 comments on commit b261345

Please sign in to comment.