Sha256: 50efd5d3367031ba7bcbf382ebaabe91da41a6335ab3bf9d4eed2c420dcaad77

Contents?: true

Size: 462 Bytes

Versions: 125

Compression:

Stored size: 462 Bytes

Contents

module Arel
  module Expressions
    def count distinct = false
      Nodes::Count.new [self], distinct
    end

    def sum
      Nodes::Sum.new [self], Nodes::SqlLiteral.new('sum_id')
    end

    def maximum
      Nodes::Max.new [self], Nodes::SqlLiteral.new('max_id')
    end

    def minimum
      Nodes::Min.new [self], Nodes::SqlLiteral.new('min_id')
    end

    def average
      Nodes::Avg.new [self], Nodes::SqlLiteral.new('avg_id')
    end
  end
end

Version data entries

125 entries across 112 versions & 13 rubygems

Version Path
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/expressions.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/arel-3.0.2/lib/arel/expressions.rb
swipe-rails-0.0.5 vendor/bundle/gems/arel-3.0.2/lib/arel/expressions.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/expressions.rb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/expressions.rb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/expressions.rb
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/expressions.rb
challah-1.0.0.beta3 vendor/bundle/gems/arel-3.0.2/lib/arel/expressions.rb
fc-webicons-0.0.4 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/expressions.rb
challah-1.0.0.beta2 vendor/bundle/gems/arel-3.0.2/lib/arel/expressions.rb
challah-1.0.0.beta vendor/bundle/gems/arel-3.0.2/lib/arel/expressions.rb
fc-webicons-0.0.3 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/expressions.rb
fc-webicons-0.0.2 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/expressions.rb
fc-webicons-0.0.1 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/expressions.rb
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/expressions.rb
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/expressions.rb
active_mailer-0.0.3 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/expressions.rb
challah-0.9.1.beta.3 vendor/bundle/gems/arel-3.0.2/lib/arel/expressions.rb
devise_sociable-0.1.0 vendor/bundle/gems/arel-3.0.2/lib/arel/expressions.rb
challah-0.9.1.beta vendor/bundle/gems/arel-3.0.2/lib/arel/expressions.rb