app/controllers/api/v1/vehicle_journeys_controller.rb
class Api::V1::VehicleJourneysController < Api::V1::ChouetteController
defaults :resource_class => Chouette::VehicleJourney, :finder => :find_by_objectid!
belongs_to :line, :parent_class => Chouette::Line, :optional => true, :finder => :find_by_objectid!, :param => :line_id do
belongs_to :route, :parent_class => Chouette::Route, :optional => true, :finder => :find_by_objectid!, :param => :route_id
end
protected
def collection
@vehicle_journeys ||= parent.vehicle_journeys
end
end