Class: GeographicItemsController

Inherits:
ApplicationController show all
Includes:
DataControllerConfiguration::SharedDataControllerConfiguration
Defined in:
app/controllers/geographic_items_controller.rb

Instance Method Summary collapse

Methods included from DataControllerConfiguration::SharedDataControllerConfiguration

#set_is_shared_data_model

Methods included from RequestType

#json_request?

Methods included from LogRecent

#log_user_recent_route

Methods included from Cookies

#digest_cookie, #digested_cookie_exists?

Methods included from Whitelist

#whitelist_constantize

Methods included from ProjectsHelper

#invalid_object, #project_link, #project_matches, #project_tag, #projects_list, #projects_search_form

Methods included from Api::Intercept

#intercept_api

Instance Method Details

#geographic_item_paramsObject (private)

Never trust parameters from the scary internet, only allow the white list through.



47
48
49
# File 'app/controllers/geographic_items_controller.rb', line 47

def geographic_item_params
  params.require(:geographic_item).permit(:point, :line_string, :polygon, :multi_point, :multi_line_string, :multi_polygon, :geometry_collection)
end

#set_geographic_itemObject (private)

Use callbacks to share common setup or constraints between actions.



41
42
43
44
# File 'app/controllers/geographic_items_controller.rb', line 41

def set_geographic_item
  @geographic_item = GeographicItem.find(params[:id])
  @recent_object = @geographic_item 
end

#showObject

GET /geographic_items/1 GET /geographic_items/1.json



8
9
# File 'app/controllers/geographic_items_controller.rb', line 8

def show
end