Sha256: 02e78d7603a32e4312b89acf70c79f786f22eac86d502d9eb3099a2145d16b50

Contents?: true

Size: 452 Bytes

Versions: 3

Compression:

Stored size: 452 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
world-flags-0.2.1 lib/world_flags/rails/engine.rb
world-flags-0.2.0 lib/world_flags/rails/engine.rb
world-flags-0.1.5 lib/world_flags/rails/engine.rb