Permalink
Browse files

Update rails/init.rb

  • Loading branch information...
1 parent b5ed944 commit 604a0a91db1b2526ec32d72c71436bf1c71d8b51 @crh3675 crh3675 committed Oct 28, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 rails/init.rb
View
@@ -1,7 +1,10 @@
gem_root = File.expand_path(File.join(File.dirname(__FILE__), ".."))
Cms.add_to_rails_paths gem_root
Cms.add_generator_paths gem_root, "db/migrate/[0-9]*_*.rb"
-ApplicationHelper.module_eval { include Cms::BlogHelper }
+# Doesn't load helpers in some Rails 2 versions, use alternate code
+# crh 2011-10-28
+# ApplicationHelper.module_eval { include Cms::BlogHelper }
+ActionView::Base.send :include, Cms::BlogHelper
config.after_initialize do
ActiveRecord::Base.observers << BlogObserver

0 comments on commit 604a0a9

Please sign in to comment.