Sha256: 327017a65230080be99b73b37c87ea8dab1d303544c299e7282a1d0c2e71f64e

Contents?: true

Size: 289 Bytes

Versions: 34

Compression:

Stored size: 289 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.name
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.4.10 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.4.9 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb
dirty_history-0.4.8 dirty_history/ruby/1.9.1/gems/arel-2.2.1/lib/arel/nodes/table_alias.rb