Sha256: f9fbc662213ec5beb77fa3f5f5fc05fac220e364531bd0e0bbcb3925fcf055b8

Contents?: true

Size: 545 Bytes

Versions: 3

Compression:

Stored size: 545 Bytes

Contents

# @private
# This controller is only used for testing purposes, it does not actually get used outside of test.
class Challah::Test::RestrictionsController < ApplicationController
  signin_required :only => [ :blah ]
  before_filter :signin_required, :only => [ :edit ]
  restrict_to_permission :special, :only => [ :new ]
  restrict_to_authenticated :only => [ :show ]

  def index
    current_user

    head :ok
  end

  def new
    head :ok
  end

  def show
    head :ok
  end

  def edit
    head :ok
  end

  def blah
    head :ok
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
challah-0.6.2 app/controllers/challah/test/restrictions_controller.rb
challah-0.6.1 app/controllers/challah/test/restrictions_controller.rb
challah-0.6.0 app/controllers/challah/test/restrictions_controller.rb