Browse files

require change

  • Loading branch information...
1 parent 07c0669 commit 133fb53bcba8201c0b4ed71527bf261dcb4041da Mark Evans committed Jan 11, 2011
Showing with 7 additions and 5 deletions.
  1. +5 −4 config.ru
  2. +2 −1 irbrc.rb
View
9 config.ru
@@ -1,9 +1,10 @@
-require 'rubygems'
+require "rubygems"
+require "bundler/setup"
+$:.unshift(File.expand_path('../lib', __FILE__))
+require 'dragonfly'
require 'rack/cache'
-require File.dirname(__FILE__) + '/lib/dragonfly'
-APP = Dragonfly[:images].configure_with(:imagemagick) do |c|
-end
+APP = Dragonfly[:images].configure_with(:imagemagick)
use Rack::Cache,
:verbose => true,
View
3 irbrc.rb
@@ -1,6 +1,7 @@
require "rubygems"
require "bundler/setup"
-require File.dirname(__FILE__) + '/lib/dragonfly'
+$:.unshift(File.expand_path('../lib', __FILE__))
+require 'dragonfly'
APP = Dragonfly[:images].configure_with(:imagemagick)
# available_uids = `find #{APP.datastore.root_path} ! -type d`.split("\n").map do |file|

0 comments on commit 133fb53

Please sign in to comment.