Sha256: 8e6091dc848a1aae8355f385e369c0928fa2851061de6009f174077f8544a416

Contents?: true

Size: 247 Bytes

Versions: 2

Compression:

Stored size: 247 Bytes

Contents

module RailsGallery
  module Rails
    class Engine < ::Rails::Engine
      initializer 'rails gallery' do
        puts "Adding RailsGallery::ViewHelper"

        ActionView::Base.send :include, RailsGallery::ViewHelper
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails-gallery-0.3.1 lib/rails-gallery/engine.rb
rails-gallery-0.3.0 lib/rails-gallery/engine.rb