Sha256: c0d649537ad158926e11f6f5ca909d79375840427fda86120392ca58a8af4481

Contents?: true

Size: 281 Bytes

Versions: 4

Compression:

Stored size: 281 Bytes

Contents

require "poke_js/view_helpers"
require "poke_js/controller"

module PokeJs
  if defined?(Rails) && defined?(Rails::Engine)
    class Engine < ::Rails::Engine
      initializer "poke_js.view_helpers" do
        ActionView::Base.send :include, ViewHelpers
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
poke_js-0.1.10 lib/poke_js.rb
poke_js-0.1.9 lib/poke_js.rb
poke_js-0.1.8 lib/poke_js.rb
poke_js-0.1.7 lib/poke_js.rb