lib/fume/simple_nav.rb in fume-0.8.1a vs lib/fume/simple_nav.rb in fume-0.9.0
- old
+ new
@@ -1,11 +1,13 @@
require "hashie"
module Fume
module SimpleNav
- def self.try_enable(app)
- ActionView::Base.send :include, HelperExtensions
+ def self.init!
+ if defined? ::ActionView::Base
+ ::ActionView::Base.send :include, HelperExtensions
+ end
end
module HelperExtensions
def simple_nav(attr_reader_name)
\ No newline at end of file