aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/api/v1/access_points_controller.rb
blob: 4c3f5adc08703a32755001bb560e3e9d05910ed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Api::V1::AccessPointsController < Api::V1::ChouetteController

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

protected

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

  end 

end