Sha256: 0cb4182ce162746f855f440c2438235bc8afd22a856391bba478c33b8740e278

Contents?: true

Size: 517 Bytes

Versions: 7

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

require "active_record"
require "active_support/inflector"
require "active_model_serializers"

$LOAD_PATH.unshift(File.dirname(__FILE__))

module ActsAsFullCalendarEvent
  if defined?(ActiveRecord::Base)
    require "acts_as_full_calendar_event/calendar_event"
    require "acts_as_full_calendar_event/serializers/full_calendar_event_serializer"
    require "acts_as_full_calendar_event/services/calendar"

    ActiveRecord::Base.extend ActsAsFullCalendarEvent::CalendarEvent
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
acts_as_full_calendar_event-1.0.7 lib/acts_as_full_calendar_event.rb
acts_as_full_calendar_event-1.0.6 lib/acts_as_full_calendar_event.rb
acts_as_full_calendar_event-1.0.5 lib/acts_as_full_calendar_event.rb
acts_as_full_calendar_event-1.0.4 lib/acts_as_full_calendar_event.rb
acts_as_full_calendar_event-1.0.3 lib/acts_as_full_calendar_event.rb
acts_as_full_calendar_event-1.0.2 lib/acts_as_full_calendar_event.rb
acts_as_full_calendar_event-1.0.1 lib/acts_as_full_calendar_event.rb