Sha256: f8df6bd59385d3fce62f9f331a4795d6e967fb457478b9657f23face906b2b3e
Contents?: true
Size: 410 Bytes
Versions: 71
Compression:
Stored size: 410 Bytes
Contents
class CamaleonCms::Apps::ThemesFrontController < CamaleonCms::FrontendController before_action :init_theme private def init_theme theme_name = params[:controller].split("/")[1] @theme = current_theme return render_error(404) unless current_theme.slug == theme_name lookup_context.prefixes.prepend(params[:controller].sub("themes/#{theme_name}", "themes/#{theme_name}/views")) end end
Version data entries
71 entries across 71 versions & 2 rubygems