Skip to content

Commit

Permalink
fixed some Rails 2.1+ assumptions since I'm stuck on Rails 2.0.2 at t…
Browse files Browse the repository at this point in the history
…he moment
  • Loading branch information
apsoto committed Feb 11, 2009
1 parent c94a269 commit 03a9945
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Fix RubyInline's permission problem,
# RubyInline doesn't like directories with
# group write permissions (like /tmp).
ENV['INLINEDIR'] = File.join(Rails.root, 'tmp', 'rubyinline')
ENV['INLINEDIR'] = File.join(Rails.respond_to?(:root) ? Rails.root : RAILS_ROOT, 'tmp', 'rubyinline')
begin
require 'inline'
require File.dirname(__FILE__) + '/lib/optimizations'
Expand Down
3 changes: 2 additions & 1 deletion lib/cache_fix.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Because Rails' FileStore doesn't Marshal data
if Rails.version == '2.1.0'
rails_ver = Rails.respond_to?(:version) ? Rails.version : Rails::VERSION::STRING
if rails_ver == '2.1.0'

module ActiveSupport
module Cache
Expand Down

0 comments on commit 03a9945

Please sign in to comment.