diff options
author | Geoff Buesing <geoff@lifesnapz.com> | 2009-08-31 17:58:54 -0500 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-09-01 02:29:22 -0700 |
commit | cc1efe7e5af32789a9ed0f80528e629861dbe6a7 (patch) | |
tree | 7d593798892d9198db5658f147beb7b8a914cb12 /railties/builtin/rails_info/rails | |
parent | a5588ffc08bd2860a39d7cb457aefa88dc08fd1a (diff) | |
download | rails-cc1efe7e5af32789a9ed0f80528e629861dbe6a7.tar.gz rails-cc1efe7e5af32789a9ed0f80528e629861dbe6a7.tar.bz2 rails-cc1efe7e5af32789a9ed0f80528e629861dbe6a7.zip |
Rails::Info doesn't require version for unwanted frameworks
[#3124 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'railties/builtin/rails_info/rails')
-rw-r--r-- | railties/builtin/rails_info/rails/info.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/builtin/rails_info/rails/info.rb b/railties/builtin/rails_info/rails/info.rb index fdacc469f5..aabe976d4e 100644 --- a/railties/builtin/rails_info/rails/info.rb +++ b/railties/builtin/rails_info/rails/info.rb @@ -29,8 +29,10 @@ module Rails 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) |