aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/activemodel.gemspec
diff options
context:
space:
mode:
authorStefan Penner <stefan.penner@gmail.com>2010-03-06 13:30:25 -0600
committerwycats <wycats@gmail.com>2010-03-06 21:33:28 -0800
commit4bc2cbc3cfa231b3dea0dce38a6fa2723c7ed94d (patch)
treed64d907c52e4194b3e72f2b24f052a75c8e97a44 /activemodel/activemodel.gemspec
parent3789539916bcfbf82ee01f9aa35fca9f32049ea8 (diff)
downloadrails-4bc2cbc3cfa231b3dea0dce38a6fa2723c7ed94d.tar.gz
rails-4bc2cbc3cfa231b3dea0dce38a6fa2723c7ed94d.tar.bz2
rails-4bc2cbc3cfa231b3dea0dce38a6fa2723c7ed94d.zip
Load RAILS_VERSION relative to the gemspec file.
Diffstat (limited to 'activemodel/activemodel.gemspec')
-rw-r--r--activemodel/activemodel.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/activemodel.gemspec b/activemodel/activemodel.gemspec
index 395ee6a378..eb9ef7b7c0 100644
--- a/activemodel/activemodel.gemspec
+++ b/activemodel/activemodel.gemspec
@@ -1,4 +1,4 @@
-version = File.read("../RAILS_VERSION").strip
+version = File.read(File.expand_path("../../RAILS_VERSION", __FILE__)).strip
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY