Sha256: 38c202b7ae6b711f209db2d4faf5fe7cdae38c473ec74fd78bc717452bb4e4d4

Contents?: true

Size: 435 Bytes

Versions: 11

Compression:

Stored size: 435 Bytes

Contents

require 'event_cal/calendar_helper'

module EventCal
  module Rails
    class Engine < ::Rails::Engine
      initializer 'event_cal.setup_view_helpers' do |app|
        app.config.to_prepare do
          # after migrating to 3.2 a line below works
          # ActionController::Base.send(:helper, ::EventCal::CalendarHelper)
          ActionView::Base.send(:include, ::EventCal::CalendarHelper)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
event_cal-2.0.2 lib/event_cal/engine.rb
event_cal-2.0.1 lib/event_cal/engine.rb
event_cal-2.0.0 lib/event_cal/engine.rb
event_cal-1.3.0 lib/event_cal/engine.rb
event_cal-1.2.5 lib/event_cal/engine.rb
event_cal-1.2.4 lib/event_cal/engine.rb
event_cal-1.2.3 lib/event_cal/engine.rb
event_cal-1.2.2 lib/event_cal/engine.rb
event_cal-1.2.1 lib/event_cal/engine.rb
event_cal-1.2 lib/event_cal/engine.rb
event_cal-1.1 lib/event_cal/engine.rb