Sha256: 0eca1268498e8a458b4ff820dc3559d0e63e6febf0587927515cd4190445feed

Contents?: true

Size: 450 Bytes

Versions: 11

Compression:

Stored size: 450 Bytes

Contents

require "simple_calendar/calendar"
require "simple_calendar/month_calendar"
require "simple_calendar/week_calendar"
require "simple_calendar/model_additions"
require "simple_calendar/railtie"
require "simple_calendar/version"
require "simple_calendar/view_helpers"

module SimpleCalendar
  def self.extended(model_class)
    return if model_class.respond_to? :has_calendar

    model_class.class_eval do
      extend ModelAdditions
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
simple_calendar-1.1.10 lib/simple_calendar.rb
simple_calendar-1.1.9 lib/simple_calendar.rb
simple_calendar-1.1.8 lib/simple_calendar.rb
simple_calendar-1.1.7 lib/simple_calendar.rb
simple_calendar-1.1.6 lib/simple_calendar.rb
simple_calendar-1.1.5 lib/simple_calendar.rb
simple_calendar-1.1.4 lib/simple_calendar.rb
simple_calendar-1.1.3 lib/simple_calendar.rb
simple_calendar-1.1.2 lib/simple_calendar.rb
simple_calendar-1.1.1 lib/simple_calendar.rb
simple_calendar-1.1.0 lib/simple_calendar.rb