Sha256: 5e9f183f9f88538056581a3df2553f26d5fbca3311a87626acf2037a459cb811

Contents?: true

Size: 771 Bytes

Versions: 1

Compression:

Stored size: 771 Bytes

Contents

require "rails_calendar/version"
require "rails_calendar/form_helpers.rb"
require "rails_calendar/controller_extensions.rb"

#ActionController::Base.helper CalendarDateSelect::FormHelpers
ActionView::Helpers::FormHelper.send(:include, RailsCalendar::FormHelpers)
ActionController::Base.send(:include, RailsCalendar::ControllerExtensions)

if ([Rails::VERSION::MAJOR, Rails::VERSION::MINOR] <=> [2, 2]) == -1
  ActionView::Helpers::InstanceTag.class_eval do
    def self.new_with_backwards_compatibility(object_name, method_name, template_object, object = nil)
      new(object_name, method_name, template_object, nil, object)
    end
  end
else
  ActionView::Helpers::InstanceTag.class_eval do
    class << self; alias new_with_backwards_compatibility new; end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_calendar-0.0.1 lib/rails_calendar.rb