Permalink
Browse files

Removed the require_relative call for a more compatible solution.

The method require_relative is not present in Ruby 1.8.7, so I have
completely removed it from both RakeFile and application.rb in favor
of File.join(File.dirname(__FILE__), 'environment').
  • Loading branch information...
1 parent 00fea73 commit 0dce1bd9c78c66209ba24eaa8cab00cbd7c2a149 @mcollina mcollina committed Jan 31, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 Rakefile
  2. +1 −1 application.rb
View
@@ -28,5 +28,5 @@ namespace :db do
end
task :environment do
- require_relative 'environment'
+ require File.join(File.dirname(__FILE__), 'environment')
end
View
@@ -1,7 +1,7 @@
require 'rubygems'
require 'bundler/setup'
require 'sinatra'
-require_relative 'environment'
+require File.join(File.dirname(__FILE__), 'environment')
configure do
set :views, "#{File.dirname(__FILE__)}/views"

0 comments on commit 0dce1bd

Please sign in to comment.