Skip to content

Commit

Permalink
Rails::Info doesn't require version for unwanted frameworks
Browse files Browse the repository at this point in the history
[rails#3124 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
Geoff Buesing authored and jeremy committed Sep 1, 2009
1 parent 6fdfe4c commit 6bf1777
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions railties/builtin/rails_info/rails/info.rb
Expand Up @@ -25,8 +25,10 @@ def frameworks
end

def framework_version(framework)
require "#{framework}/version"
"#{framework.classify}::VERSION::STRING".constantize
if Object.const_defined?(framework.classify)
require "#{framework}/version"
"#{framework.classify}::VERSION::STRING".constantize
end
end

def edge_rails_revision(info = git_info)
Expand Down

0 comments on commit 6bf1777

Please sign in to comment.