aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/networks_controller.rb
blob: b9423c976f0131f264f7a1484346e852685ec6b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class NetworksController < ChouetteController
  defaults :resource_class => Chouette::Network
  respond_to :html
  respond_to :xml
  respond_to :json

  protected

  def resource_url(network = nil)
    referential_network_path(referential, network || resource)
  end

  def collection_url
    referential_networks_path(referential)
  end
end