Sha256: 8e0db6966184db7c51794078ac8de6da80cd36179273c287781191bdd6b449df

Contents?: true

Size: 287 Bytes

Versions: 6

Compression:

Stored size: 287 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::Helper::View
    	end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
world-flags-0.3.2.2 lib/world_flags/rails/engine.rb
world-flags-0.3.2.1 lib/world_flags/rails/engine.rb
world-flags-0.3.2 lib/world_flags/rails/engine.rb
world-flags-0.3.1 lib/world_flags/rails/engine.rb
world-flags-0.3.0 lib/world_flags/rails/engine.rb
world-flags-0.2.7 lib/world_flags/rails/engine.rb