Sha256: 104129ca3480ef26d94e74b6afc35d1e1f2436deba72264cc601facd1cd04760

Contents?: true

Size: 308 Bytes

Versions: 3

Compression:

Stored size: 308 Bytes

Contents

require 'rehearsal/view_helpers'

module Rehearsal
  class Engine < ::Rails::Engine
    initializer "rehearsal.view_helpers" do
      ActionView::Base.send :include, ViewHelpers
    end

    initializer "rehearsal.action_controller" do
      ActionController::Base.send :include, Rehearsal
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rehearsal-0.9.2 lib/rehearsal/engine.rb
rehearsal-0.9.1 lib/rehearsal/engine.rb
rehearsal-0.9.0 lib/rehearsal/engine.rb