Flowdock
method

new

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: Table
new(name, as: nil, type_caster: nil) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/arel/table.rb, line 16
    def initialize(name, as: nil, type_caster: nil)
      @name = name.to_s
      @type_caster = type_caster

      # Sometime AR sends an :as parameter to table, to let the table know
      # that it is an Alias.  We may want to override new, and return a
      # TableAlias node?
      if as.to_s == @name
        as = nil
      end
      @table_alias = as
    end
Register or log in to add new notes.