Class: Location::FinderController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/location/finder_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
9
# File 'app/controllers/location/finder_controller.rb', line 5

def show
  Finder.find params[:postal_code] do |f|
    @address = f.address.to_hash(only: params[:only]).to_json
  end
end