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-6.3.1 app/controllers/admin/references_controller.rb
trusty-cms-7.0.2 app/controllers/admin/references_controller.rb
trusty-cms-7.0.1 app/controllers/admin/references_controller.rb
trusty-cms-7.0.0 app/controllers/admin/references_controller.rb
trusty-cms-6.3 app/controllers/admin/references_controller.rb
trusty-cms-6.2.1 app/controllers/admin/references_controller.rb
trusty-cms-6.2.2.1 app/controllers/admin/references_controller.rb
trusty-cms-6.2.0 app/controllers/admin/references_controller.rb
trusty-cms-6.1.2 app/controllers/admin/references_controller.rb
trusty-cms-6.1.1 app/controllers/admin/references_controller.rb
trusty-cms-6.0.5 app/controllers/admin/references_controller.rb
trusty-cms-6.0.4 app/controllers/admin/references_controller.rb
trusty-cms-6.0.3 app/controllers/admin/references_controller.rb
trusty-cms-6.0.2 app/controllers/admin/references_controller.rb
trusty-cms-6.0.1 app/controllers/admin/references_controller.rb
trusty-cms-5.6.1 app/controllers/admin/references_controller.rb
trusty-cms-6.0.0 app/controllers/admin/references_controller.rb
trusty-cms-5.6.0 app/controllers/admin/references_controller.rb
trusty-cms-5.5.9 app/controllers/admin/references_controller.rb
trusty-cms-5.5.8 app/controllers/admin/references_controller.rb