lib/wat_catcher/railtie.rb in wat_catcher-0.0.7 vs lib/wat_catcher/railtie.rb in wat_catcher-0.0.8

- old
+ new

@@ -11,9 +11,14 @@ # Auto-load configuration settings from config/bugsnag.yml if it exists config_file = ::Rails.root.join("config", "wat_catcher.yml") config = YAML.load_file(config_file) if File.exists?(config_file) WatCatcher.configure(config[::Rails.env] ? config[::Rails.env] : config) if config + + end + initializer "wat_catcher.view_helpers" do |app| + ActionView::Base.send :include, ::WatCatcher::Helper end + end end \ No newline at end of file