module WorldFlags module Rails class Engine < ::Rails::Engine initializer "setup for rails" do # puts "WorldFlags engine loaded" WorldFlags::Rails::Engine.add_view_ext end def self.add_view_ext ActionView::Base.send :include, WorldFlags::ViewHelper end def self.add_controller_ext # ActionController::Base.send(:include, WorldFlags::UiControllerExtensions) end end end end