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