Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Setup the rails stuff when it's included. Old style rails/init.rb isn…

…'t supported in Rails 3.
  • Loading branch information...
commit 9155c438a4c5c5789f7ff05c1757f99ec95863d4 1 parent d74567b
@rgarver authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/scrooge.rb
View
4 lib/scrooge.rb
@@ -104,3 +104,7 @@ def as_cents
to_i.as_cents
end
end
+
+if defined?(Rails)
+ require File.join(File.dirname(__FILE__), '..', "rails", "init.rb")
+end
Please sign in to comment.
Something went wrong with that request. Please try again.