Class: GeographicItemsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- GeographicItemsController
- Defined in:
- app/controllers/geographic_items_controller.rb
Instance Method Summary collapse
-
#geographic_item_params ⇒ Object
private
Never trust parameters from the scary internet, only allow the white list through.
-
#set_geographic_item ⇒ Object
private
Use callbacks to share common setup or constraints between actions.
-
#show ⇒ Object
GET /geographic_items/1 GET /geographic_items/1.json.
Methods included from DataControllerConfiguration::SharedDataControllerConfiguration
Methods included from RedirectHelper
Methods included from RequestType
Methods included from LogRecent
Methods included from Cookies
#digest_cookie, #digested_cookie_exists?
Methods included from Whitelist
Methods included from Api::Intercept
Methods included from TokenAuthentication
#intercept_project, #intercept_user, #intercept_user_or_project, #project_token_authenticate, #token_authenticate
Instance Method Details
#geographic_item_params ⇒ Object (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_item ⇒ Object (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 |
#show ⇒ Object
GET /geographic_items/1 GET /geographic_items/1.json
8 9 |
# File 'app/controllers/geographic_items_controller.rb', line 8 def show end |