Sha256: 9a266447be75183e9e2bf6b59599673ca7a51294107ebc981b77edd00ee56786

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

require 'event_calendar'
require 'event_calendar/calendar_helper'
require 'rails'

module EventCalendar
  class Railtie < Rails::Engine
    initializer :after_initialize do
      ActionController::Base.helper EventCalendar::CalendarHelper
      ActiveRecord::Base.extend EventCalendar::ClassMethods
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
event-calendar-2.3.1 lib/event_calendar/railtie.rb