Permalink
Browse files

moved filter to Rails namespace

  • Loading branch information...
1 parent e05b92b commit 6798f063799c8ec2d1470e586219c08b9e6f8010 Jordan Glasner committed Apr 4, 2010
Showing with 17 additions and 15 deletions.
  1. +0 −15 lib/nimble_nodes/filter.rb
  2. +17 −0 lib/nimble_nodes/rails/filter.rb
View
@@ -1,15 +0,0 @@
-module NimbleNodes
-
- module Filter
-
- # Use as a before_filter
- def monitor_heroku_app
- NimbleNodes.monitor(request.env)
- end
-
-
- end
-
-end
-
-ActionController::Base.send(:include, NimbleNodes::Filter)
@@ -0,0 +1,17 @@
+module NimbleNodes
+ module Rails
+ module Filter
+
+ # Use as a before_filter
+ def monitor_heroku_app
+ NimbleNodes::Dynos.monitor(request.env) if NimbleNodes::Dynos.monitor?
+ end
+
+
+ end
+ end
+
+
+end
+
+ActionController::Base.send(:include, NimbleNodes::Rails::Filter)

0 comments on commit 6798f06

Please sign in to comment.