Sha256: a109fd21ddc58ae39bed24da44b4e8a6ac0f9fc89fbf32c647b041aba0629d97

Contents?: true

Size: 310 Bytes

Versions: 9

Compression:

Stored size: 310 Bytes

Contents

class Manage::ConfigsController < Manage::ApplicationController
  before_action :limit_access_admin

  respond_to :html, :json

  def show
    respond_with(Rails.configuration.hackathon)
  end

  private

  def limit_access_admin
    redirect_to manage_root_path if current_user.admin_limited_access
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hackathon_manager-0.12.2 app/controllers/manage/configs_controller.rb
hackathon_manager-0.12.1 app/controllers/manage/configs_controller.rb
hackathon_manager-0.12.0 app/controllers/manage/configs_controller.rb
hackathon_manager-0.11.2 app/controllers/manage/configs_controller.rb
hackathon_manager-0.11.1 app/controllers/manage/configs_controller.rb
hackathon_manager-0.11.0 app/controllers/manage/configs_controller.rb
hackathon_manager-0.10.3 app/controllers/manage/configs_controller.rb
hackathon_manager-0.10.2 app/controllers/manage/configs_controller.rb
hackathon_manager-0.10.1 app/controllers/manage/configs_controller.rb