Permalink
Browse files

registered helper method with ActionView::Base

  • Loading branch information...
1 parent 673994e commit 7cc8abdb3893faa2ad05e95bfaf9f34528af7536 David Kerstanski committed Apr 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/shortener/railtie.rb
View
@@ -6,5 +6,6 @@ class Shortener::Railtie < ::Rails::Railtie #:nodoc:
ActiveSupport.on_load :active_record do
extend Shortener::ActiveRecordExtension
end
+ ActionView::Base.send :include, Shortener::ShortenerHelper
end
end

0 comments on commit 7cc8abd

Please sign in to comment.