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

Version Path
trusty-cms-5.5.7 app/controllers/admin/references_controller.rb
trusty-cms-5.5.6 app/controllers/admin/references_controller.rb
trusty-cms-5.5.5.1 app/controllers/admin/references_controller.rb
trusty-cms-5.5.1 app/controllers/admin/references_controller.rb
trusty-cms-5.5 app/controllers/admin/references_controller.rb
trusty-cms-5.4.4 app/controllers/admin/references_controller.rb
trusty-cms-5.4.3 app/controllers/admin/references_controller.rb
trusty-cms-5.4.2 app/controllers/admin/references_controller.rb
trusty-cms-5.4.1 app/controllers/admin/references_controller.rb
trusty-cms-5.4.0 app/controllers/admin/references_controller.rb
trusty-cms-5.3.9 app/controllers/admin/references_controller.rb
trusty-cms-5.3.8 app/controllers/admin/references_controller.rb
trusty-cms-5.3.7 app/controllers/admin/references_controller.rb
trusty-cms-5.3.6 app/controllers/admin/references_controller.rb
trusty-cms-5.3.5 app/controllers/admin/references_controller.rb
trusty-cms-5.3.4 app/controllers/admin/references_controller.rb
trusty-cms-5.3.3 app/controllers/admin/references_controller.rb
trusty-cms-5.3.2 app/controllers/admin/references_controller.rb
trusty-cms-5.3.1 app/controllers/admin/references_controller.rb
trusty-cms-5.3 app/controllers/admin/references_controller.rb