Sha256: 1e55ed4630b629c573b6140ae8afd6041a89a3b14029e03a136f9ebf9947e6be
Contents?: true
Size: 446 Bytes
Versions: 49
Compression:
Stored size: 446 Bytes
Contents
class ExampleController < ApplicationController before_filter :authenticate_user!, :only => [:restricted, :this_requires_signin_permission] before_filter :require_signin_permission!, only: [:this_requires_signin_permission] def index render :text => "jabberwocky" end def restricted render :text => "restricted kablooie" end def this_requires_signin_permission render :text => "you have signin permission" end end
Version data entries
49 entries across 49 versions & 1 rubygems