Sha256: a9f52259fb9bc358c5dfcedf152a2f755e78cef02b4c822f100570ec5363db48

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 Bytes

Contents

require 'event_calendar/calendar_helper'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
event_cal-1.0 lib/event_calendar/engine.rb