Sha256: b1b4d24cd89439be1d4c0613c240e6a4342c604eb28798dacb50d862db76246f

Contents?: true

Size: 462 Bytes

Versions: 10

Compression:

Stored size: 462 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_authenticated :only => [ :show ]

  def index
    current_user

    head :ok
  end

  def show
    head :ok
  end

  def edit
    head :ok
  end

  def blah
    head :ok
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/app/controllers/challah/test/restrictions_controller.rb
challah-0.8.2 app/controllers/challah/test/restrictions_controller.rb
challah-0.8.1 app/controllers/challah/test/restrictions_controller.rb
challah-0.8.0 app/controllers/challah/test/restrictions_controller.rb
challah-rolls-0.1.0 vendor/bundle/gems/challah-0.8.0.pre/app/controllers/challah/test/restrictions_controller.rb
challah-0.8.0.pre app/controllers/challah/test/restrictions_controller.rb
challah-0.7.1 app/controllers/challah/test/restrictions_controller.rb
challah-0.7.0 app/controllers/challah/test/restrictions_controller.rb
challah-0.7.0.pre2 app/controllers/challah/test/restrictions_controller.rb
challah-0.7.0.pre app/controllers/challah/test/restrictions_controller.rb