afimb/chouette2

View on GitHub
app/controllers/api/v1/access_links_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Api::V1::AccessLinksController < Api::V1::ChouetteController

  defaults :resource_class => Chouette::AccessLink, :finder => :find_by_objectid!

protected

  def collection
    @access_links ||=  ( @referential ? @referential.access_links.search(params[:q]).result(:distinct => true) : [])

  end 

end