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