Sha256: 9c3438d33245c546288a2dd666a5db778ab6b343d8549d2f11df7859d4ef51b3

Contents?: true

Size: 497 Bytes

Versions: 12

Compression:

Stored size: 497 Bytes

Contents

# rubocop:disable Naming/MethodName
# rubocop:disable Naming/UncommunicativeMethodParamName

module Arel
  module Nodes
    class CurrentTime < TimeWithPrecision
    end
  end

  module Visitors
    class ToSql
      def visit_Arel_Nodes_CurrentTime(o, collector)
        collector << 'current_time'
        collector << "(#{o.precision.to_i})" if o.precision
        collector
      end
    end
  end
end

# rubocop:enable Naming/MethodName
# rubocop:enable Naming/UncommunicativeMethodParamName

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
arel_toolkit-0.4.9 lib/arel/extensions/current_time.rb
arel_toolkit-0.4.8 lib/arel/extensions/current_time.rb
arel_toolkit-0.4.7 lib/arel/extensions/current_time.rb
arel_toolkit-0.4.6 lib/arel/extensions/current_time.rb
arel_toolkit-0.4.5 lib/arel/extensions/current_time.rb
arel_toolkit-0.4.4 lib/arel/extensions/current_time.rb
arel_toolkit-0.4.3 lib/arel/extensions/current_time.rb
arel_toolkit-0.4.2 lib/arel/extensions/current_time.rb
arel_toolkit-0.4.1 lib/arel/extensions/current_time.rb
arel_toolkit-0.4.0 lib/arel/extensions/current_time.rb
arel_toolkit-0.3.0 lib/arel/extensions/current_time.rb
arel_toolkit-0.2.0 lib/arel/extensions/current_time.rb