Class: Maglev::Api::SitesController
- Inherits:
-
Maglev::ApiController
- Object
- ApplicationController
- Maglev::ApplicationController
- Maglev::ApiController
- Maglev::Api::SitesController
- Defined in:
- app/controllers/maglev/api/sites_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/controllers/maglev/api/sites_controller.rb', line 6 def show if (@site = maglev_site).present? @home_page_id = maglev_page_collection.home.pick(:id) else head :not_found end end |