module Rexport::DataFields::ClassMethods
Public Instance Methods
get_klass_from_associations(*associations)
click to toggle source
Returns the associated class by following the chain of associations
# File lib/rexport/data_fields.rb, line 9 def get_klass_from_associations(*associations) associations.flatten! return self if associations.empty? reflect_on_association(associations.shift.to_sym).klass.get_klass_from_associations(associations) end