Method: Correlate::Correlation#direction
- Defined in:
- lib/correlate/correlation.rb
#direction ⇒ Hash
Conveniently show the ‘direction’ of the correlation in terms of classes
89 90 91 92 93 94 |
# File 'lib/correlate/correlation.rb', line 89 def direction f = source_class.ancestors.include?( CouchRest::ExtendedDocument ) ? :couchdb : :active_record t = target_class.ancestors.include?( CouchRest::ExtendedDocument ) ? :couchdb : :active_record { f => t } end |