class ActiveRecord::Base

Public Class Methods

_relation_table() click to toggle source
# File lib/generic_search/rails_overrides.rb, line 29
def self._relation_table
  #@@relation_table ||= begin
  #puts "processing..."
  self.reflect_on_all_associations.inject({}) do |hash, assoc_reflection|
    hash[assoc_reflection.name] ||= assoc_reflection.table_name
    hash
  end
  #end
end
_table_relation() click to toggle source
# File lib/generic_search/rails_overrides.rb, line 19
def self._table_relation
  #@@table_relation ||= begin
  #  puts "processing..."
  self.reflect_on_all_associations.inject({}) do |hash, assoc_reflection|
    hash[assoc_reflection.table_name] ||= assoc_reflection.name
    hash
  end
  #end
end

Public Instance Methods