Sha256: 3df612494b689f0485f8122838c522bf690c2be6f741a17d9292507afc7bee5b
Contents?: true
Size: 306 Bytes
Versions: 71
Compression:
Stored size: 306 Bytes
Contents
class Admin::ReferencesController < ApplicationController def show respond_to do |format| render_allowed_type(params[:type]) format.any { render action: @type, content_type: 'text/html', layout: false } end end private def render_allowed_type(type) @type = type end end
Version data entries
71 entries across 71 versions & 1 rubygems