Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

moved init to root path

  • Loading branch information...
commit e818333acb91215a761a7579f12c9e023324e7ad 1 parent 8868a99
Rudolf Schmidt authored
Showing with 6 additions and 4 deletions.
  1. +5 −0 init.rb
  2. +0 −3  rails/init.rb
  3. +1 −1  test/test_helper.rb
5 init.rb
View
@@ -0,0 +1,5 @@
+require File.dirname(__FILE__) + '/lib/nav'
+
+if defined?( ActionView::Base )
+ ActionView::Base.send :include, Nav
+end
3  rails/init.rb
View
@@ -1,3 +0,0 @@
-require File.dirname(__FILE__) + '/../lib/nav'
-
-ActionView::Base.send :include, Nav
2  test/test_helper.rb
View
@@ -7,7 +7,7 @@
rescue LoadError
STDERR.puts "Unable to run Nav tests."
else
- require File.dirname(__FILE__) + "/../rails/init"
+ require File.dirname(__FILE__) + "/../init"
end
Please sign in to comment.
Something went wrong with that request. Please try again.