Sha256: 747387db84cc23c7b68fd17f282e8bc0a4e966b179494389a3bd2be68c0d5435

Contents?: true

Size: 285 Bytes

Versions: 3

Compression:

Stored size: 285 Bytes

Contents

module WorldFlags
  module Rails
    class Engine < ::Rails::Engine        
    	initializer "setup for rails" do
    		WorldFlags::Rails::Engine.add_view_ext
      end

    	def self.add_view_ext
    		ActionView::Base.send :include, WorldFlags::ViewHelper
    	end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
world-flags-0.2.4 lib/world_flags/rails/engine.rb
world-flags-0.2.3 lib/world_flags/rails/engine.rb
world-flags-0.2.2 lib/world_flags/rails/engine.rb