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
          ActionController::Base.send(:helper, ::EventCalendar::CalendarHelper)
        end
      end
    end
  end
end

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

Fix to helper work with 3.* rails app
Fix to helper work with 3.* rails app
