Class: SimpleAddress::RegionsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/simple_address/regions_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



3
4
5
6
# File 'app/controllers/simple_address/regions_controller.rb', line 3

def index
  @regions = Region.search(params)
  render json: @regions.as_json(only: [:id, :name])
end