Skip to content

Commit

Permalink
Removed the require_relative call for a more compatible solution.
Browse files Browse the repository at this point in the history
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
mcollina committed Jan 31, 2011
1 parent 00fea73 commit 0dce1bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -28,5 +28,5 @@ namespace :db do
end

task :environment do
require_relative 'environment'
require File.join(File.dirname(__FILE__), 'environment')
end
2 changes: 1 addition & 1 deletion application.rb
@@ -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"
Expand Down

0 comments on commit 0dce1bd

Please sign in to comment.