aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/api/v1/lines_controller.rb
blob: 2375a5f7a6ece36a96e67027476658820cbc9c54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Api
  module V1
    class LinesController < ChouetteController

      defaults :resource_class => Chouette::Line, :finder => :find_by_objectid!
      
  protected

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