Sha256: 760aab351ffa5d9e9b4679aeeaee7d292e24f088b76f9c444e23d065802a784d

Contents?: true

Size: 677 Bytes

Versions: 146

Compression:

Stored size: 677 Bytes

Contents

module Arel
  module Attributes
    class Attribute < Struct.new :relation, :name
      include Arel::Expressions
      include Arel::Predications
      include Arel::AliasPredication
      include Arel::OrderPredications
      include Arel::Math

      ###
      # Create a node for lowering this attribute
      def lower
        relation.lower self
      end
    end

    class String    < Attribute; end
    class Time      < Attribute; end
    class Boolean   < Attribute; end
    class Decimal   < Attribute; end
    class Float     < Attribute; end
    class Integer   < Attribute; end
    class Undefined < Attribute; end
  end

  Attribute = Attributes::Attribute
end

Version data entries

146 entries across 125 versions & 20 rubygems

Version Path
challah-1.0.0.beta3 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
arel-4.0.0 lib/arel/attributes/attribute.rb
fc-webicons-0.0.4 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
challah-1.0.0.beta2 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
challah-1.0.0.beta vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
fc-webicons-0.0.3 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
fc-webicons-0.0.2 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
fc-webicons-0.0.1 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
arel-4.0.0.beta2 lib/arel/attributes/attribute.rb
arel-4.0.0.beta1 lib/arel/attributes/attribute.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/attributes/attribute.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/attributes/attribute.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/attributes/attribute.rb
challah-0.9.1.beta.3 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
devise_sociable-0.1.0 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
challah-0.9.1.beta vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
challah-0.9.0 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.rb
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/attributes/attribute.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/attributes/attribute.rb