Skip to content

Commit

Permalink
Mitigate rubygems compatibility issue (hat tip Jens Norrgrann)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksieger committed Nov 7, 2008
1 parent 9915fc9 commit 2026761
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/warbler/config.rb
Expand Up @@ -156,7 +156,9 @@ def auto_detect_rails
@gems["rails"] = Rails::VERSION::STRING
end
if defined?(Rails.configuration.gems)
Rails.configuration.gems.each {|g| @gems[g.name] = g.version }
Rails.configuration.gems.each do |g|
@gems[g.name] = g.respond_to?(:version) ? g.version : g.specification.version
end
end
@webxml.jruby.max.runtimes = 1 if defined?(Rails.configuration.threadsafe!)
true
Expand Down Expand Up @@ -229,4 +231,4 @@ def to_s
"No value for '#@key' found"
end
end
end
end

0 comments on commit 2026761

Please sign in to comment.