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
arel-6.0.0 lib/arel/attributes/attribute.rb
apl-library-0.0.90 vendor/bundle/ruby/1.8/gems/arel-3.0.3/lib/arel/attributes/attribute.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/arel-3.0.3/lib/arel/attributes/attribute.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.8/gems/arel-3.0.3/lib/arel/attributes/attribute.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/arel-3.0.3/lib/arel/attributes/attribute.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/arel-3.0.3/lib/arel/attributes/attribute.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/arel-3.0.3/lib/arel/attributes/attribute.rb
arel-6.0.0.beta2 lib/arel/attributes/attribute.rb
arel-6.0.0.beta1 lib/arel/attributes/attribute.rb
arel-5.0.1.20140414130214 lib/arel/attributes/attribute.rb
arel-4.0.2 lib/arel/attributes/attribute.rb
arel-5.0.0 lib/arel/attributes/attribute.rb
arel-3.0.3 lib/arel/attributes/attribute.rb
arel-4.0.1 lib/arel/attributes/attribute.rb
challah-1.0.0 vendor/bundle/gems/arel-4.0.0/lib/arel/attributes/attribute.rb
swipe-rails-0.0.5 vendor/bundle/gems/arel-3.0.2/lib/arel/attributes/attribute.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/attributes/attribute.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/attributes/attribute.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/attributes/attribute.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/attributes/attribute.rb