Permalink
Browse files

Totally forgot about init.rb

  • Loading branch information...
1 parent 0b3d533 commit 0797b2a253e40103c8132374996c1dc9ed5aa4aa @judofyr committed Jul 4, 2009
Showing with 10 additions and 7 deletions.
  1. +1 −4 init.rb
  2. +5 −3 lib/parkaby/frameworks/rails.rb
  3. +4 −0 rails/init.rb
View
@@ -1,4 +1 @@
-$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
-
-require 'parkaby'
-Parkaby::Frameworks::Rails.activate!
+require File.dirname(__FILE__) + "/rails/init"
@@ -1,8 +1,10 @@
# == Using it
#
-# # in config/initializers/parkaby.rb
-# require 'parkaby'
-# Parkaby::Frameworks::Rails.active!
+# # in environment.rb (when the gem is released)
+# config.gem 'parkaby'
+#
+# # as a plugin
+# ./script/plugin install git://github.com/judofyr/parkaby.git
class Parkaby::Frameworks::Rails < ActionView::TemplateHandler
@@cache = {}
View
@@ -0,0 +1,4 @@
+$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+
+require 'parkaby'
+Parkaby::Frameworks::Rails.activate!

0 comments on commit 0797b2a

Please sign in to comment.