lib/wice_grid.rb
# Returns an Arel::Attributes::Attribute for the passed column reference.
Returns an Arel::Attributes::Attribute for the passed column reference.
Returns an Arel :: Attributes :: Attribute for the passed column reference .
def arel_column_reference(col_name)  
      if col_name.index('.') 
        table_name, col_name = col_name.split('.', 2)
        Arel::Table.new(table_name)[col_name]
      else 
        @klass.arel_table[col_name]
      end
    end
def arel_column_reference ( col_name ) if col_name . index ( '.' ) table_name , col_name = col_name . split ( '.' , 2 ) Arel :: Table . new ( table_name ) [ col_name ] else @klass . arel_table [ col_name ] end end
Returns an Arel::Attributes::Attribute for the passed column reference.
Returns an Arel :: Attributes :: Attribute for the passed column reference .
#:nodoc: # already has a table name # add the default table
col_name