lib/nice_partials.rb in nice_partials-0.1.3 vs lib/nice_partials.rb in nice_partials-0.1.4

- old
+ new

@@ -14,6 +14,8 @@ partial_location = block.source_location.first.dup root_paths.each { |path| partial_location.gsub!(/^#{path}\//, '') } partial_location.split('.').first.gsub('/_', '/').gsub('/', '.') end -ActionView::Base.send :include, NicePartials::Helper +ActiveSupport.on_load :action_view do + include NicePartials::Helper +end