Sha256: 7b55d82b68bf7384dcce84766eb3b34405239ce102f82dee42ff7ecef9a55982

Contents?: true

Size: 429 Bytes

Versions: 6

Compression:

Stored size: 429 Bytes

Contents

require 'schedule_attributes/model'
require 'schedule_attributes/railtie' if defined? Rails
require 'schedule_attributes/form_builder' if defined? Formtastic

if defined? Arel
  module Arel::Visitors
    class ToSql

      # Allow schedule occurrences to be used directly as Time objects in
      # ActiveRecord queries
      #
      def visit_IceCube_Occurrence(value)
        quoted(value.to_time)
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dgp-schedule_attributes-0.5.3 lib/schedule_attributes.rb
dgp-schedule_attributes-0.5.2 lib/schedule_attributes.rb
dgp-schedule_attributes-0.5.1 lib/schedule_attributes.rb
dgp-schedule_attributes-0.5.0 lib/schedule_attributes.rb
dgp-schedule_attributes-0.4.0 lib/schedule_attributes.rb
schedule_attributes-0.3.0 lib/schedule_attributes.rb