Sha256: 553b905fedc592729617d4de6b46e7d307d91f71c1baf9e53cdd9d4b178cdcfc

Contents?: true

Size: 255 Bytes

Versions: 4

Compression:

Stored size: 255 Bytes

Contents

module UbigeoRails
  class UbigeosController < ApplicationController    
    respond_to :json
  
    def show
      render json: UbigeoRails::Ubigeo.with_parent(parent_id)
    end
    
    private
    
    def parent_id
      params[:id]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ubigeo_rails-0.0.6 app/controllers/ubigeo_rails/ubigeos_controller.rb
ubigeo_rails-0.0.5 app/controllers/ubigeo_rails/ubigeos_controller.rb
ubigeo_rails-0.0.4 app/controllers/ubigeo_rails/ubigeos_controller.rb
ubigeo_rails-0.0.3 app/controllers/ubigeo_rails/ubigeos_controller.rb