lib/duffy/railtie.rb
# http://stackoverflow.com/questions/5791211/how-do-i-extract-rails-view-helpers-into-a-gem
require File.dirname(__FILE__) + "/duffy_helper"
require File.dirname(__FILE__) + "/beast_mode_helper"
module Duffy
# Make our helpers available to those host application
class Railtie < Rails::Railtie
initializer "duffy_helper" do
ActiveSupport.on_load(:action_view) { include DuffyHelper }
end
initializer "beast_mode_helper" do
ActiveSupport.on_load(:action_view) { include BeastModeHelper }
end
end
end