Sha256: 84dffc1d24bfea088958ed2976782e7b20023ba868a75ff77701603c1e320466

Contents?: true

Size: 492 Bytes

Versions: 15

Compression:

Stored size: 492 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
  before_filter :login_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
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
challah-0.5.4 app/controllers/challah/test/restrictions_controller.rb
challah-0.5.3 app/controllers/challah/test/restrictions_controller.rb
challah-0.5.2 app/controllers/challah/test/restrictions_controller.rb
challah-0.5.1 app/controllers/challah/test/restrictions_controller.rb
challah-0.5.0 app/controllers/challah/test/restrictions_controller.rb
challah-0.4.1 app/controllers/challah/test/restrictions_controller.rb
challah-0.4.0 app/controllers/challah/test/restrictions_controller.rb
challah-0.3.5 app/controllers/challah/test/restrictions_controller.rb
challah-0.3.4 app/controllers/challah/test/restrictions_controller.rb
challah-0.3.3 app/controllers/challah/test/restrictions_controller.rb
challah-0.3.2 app/controllers/challah/test/restrictions_controller.rb
challah-0.3.1 app/controllers/challah/test/restrictions_controller.rb
challah-0.3.0 app/controllers/challah/test/restrictions_controller.rb
challah-0.2.1 app/controllers/challah/test/restrictions_controller.rb
challah-0.2.0 app/controllers/challah/test/restrictions_controller.rb