Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/referrable_joins/active_record_hacks.rb

Class Method Summary collapse

Class Method Details

.reflection_table(reflection) ⇒ Object



119
120
121
# File 'lib/referrable_joins/active_record_hacks.rb', line 119

def reflection_table(reflection)
  ActiveRecord::ReflectionTable.new(self.reflections[reflection].table_name.to_sym, reflection)
end