Sha256: bf76e2c10f5899ab30a57cf4a0f9b195a0b2ccf33c5c3da10854c3872208f974
Contents?: true
Size: 392 Bytes
Versions: 16
Compression:
Stored size: 392 Bytes
Contents
# frozen_string_literal: true module Maglev module Api class SitesController < ::Maglev::ApiController def show if (@site = maglev_site).present? @home_page_id = maglev_page_collection.home.pick(:id) else head :not_found end end private def maglev_page_collection ::Maglev::Page end end end end
Version data entries
16 entries across 16 versions & 1 rubygems