Module: FriendlyId::Finders::ClassMethods
- Defined in:
- lib/friendly_id/finders.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) relation_delegate_class(klass)
69 70 71 72 |
# File 'lib/friendly_id/finders.rb', line 69 def relation_delegate_class(klass) relation_class_name = :#{klass.to_s.gsub('::', '_')}_#{self.to_s.gsub('::', '_')}" klass.const_get(relation_class_name) end |