Sha256: f54b596a158d87fbbdb2a05e37bc086ae9fd95e4326383f907bed790011c9034
Contents?: true
Size: 484 Bytes
Versions: 13
Compression:
Stored size: 484 Bytes
Contents
# frozen_string_literal: true require "active_support/concern" module Decidim module Design # Common logic of design controllers module HasTemplates extend ActiveSupport::Concern included do def show raise ActionController::RoutingError, "Not Found" unless lookup_context.exists?("decidim/design/#{controller_name}/#{params[:id]}") render "decidim/design/#{controller_name}/#{params[:id]}" end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems