Module: SluggableFinder::AssociationProxyFinder

Defined in:
lib/sluggable_finder/finder.rb

Instance Method Summary collapse

Instance Method Details

#find_with_slug(*args) ⇒ Object



30
31
32
33
34
# File 'lib/sluggable_finder/finder.rb', line 30

def find_with_slug(*args)
  return find_without_slug(*args) unless @reflection.klass.respond_to?(:sluggable_finder_options)
  options = @reflection.klass.sluggable_finder_options
  find_sluggable(options,*args)
end