Sha256: 4b381e27ff8b8f0c9e78aa357f4ac9f5a6d2e1e76da682176ead2d17bd3074d5

Contents?: true

Size: 378 Bytes

Versions: 28

Compression:

Stored size: 378 Bytes

Contents

module Arel
  module Nodes
    class TableAlias < Arel::Nodes::Binary
      alias :name :right
      alias :relation :left
      alias :table_alias :name

      def [] name
        Attribute.new(self, name)
      end

      def table_name
        relation.respond_to?(:name) ? relation.name : name
      end

      def engine
        relation.engine
      end
    end
  end
end

Version data entries

28 entries across 25 versions & 8 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/arel-6.0.4/lib/arel/nodes/table_alias.rb
arel-6.0.4 lib/arel/nodes/table_alias.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/arel-6.0.3/lib/arel/nodes/table_alias.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/arel-6.0.3/lib/arel/nodes/table_alias.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/arel-5.0.1.20140414130214/lib/arel/nodes/table_alias.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/arel-6.0.3/lib/arel/nodes/table_alias.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/arel-5.0.1.20140414130214/lib/arel/nodes/table_alias.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/arel-5.0.1.20140414130214/lib/arel/nodes/table_alias.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/arel-6.0.3/lib/arel/nodes/table_alias.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/arel-6.0.3/lib/arel/nodes/table_alias.rb
arel-6.0.3 lib/arel/nodes/table_alias.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/arel-6.0.0/lib/arel/nodes/table_alias.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/arel-6.0.0/lib/arel/nodes/table_alias.rb
arel-6.0.2 lib/arel/nodes/table_alias.rb
arel-6.0.1 lib/arel/nodes/table_alias.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/arel-6.0.0/lib/arel/nodes/table_alias.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/arel-6.0.0/lib/arel/nodes/table_alias.rb
arel-6.0.0 lib/arel/nodes/table_alias.rb
arel-6.0.0.beta2 lib/arel/nodes/table_alias.rb
arel-6.0.0.beta1 lib/arel/nodes/table_alias.rb