Skip to content
This repository
Browse code

Add in some Rails specific cheaters

  • Loading branch information...
commit b28a4294e75330143b19934751757cc58f9e1f2f 1 parent 66fc0eb
Michael Moen authored April 05, 2007
1  init.rb
... ...
@@ -1,3 +1,4 @@
1 1
 require File.dirname(__FILE__) + '/lib/core_extensions'
  2
+require File.dirname(__FILE__) + '/lib/rails_extensions'
2 3
 require File.dirname(__FILE__) + '/lib/time'
3 4
 require File.dirname(__FILE__) + '/lib/useful'
7  lib/rails_extensions.rb
... ...
@@ -0,0 +1,7 @@
  1
+module ActionController
  2
+  class AbstractRequest
  3
+    def referrer
  4
+      self.env['HTTP_REFERER']
  5
+    end
  6
+  end
  7
+end

0 notes on commit b28a429

Please sign in to comment.
Something went wrong with that request. Please try again.