Sha256: 5a950b7c8fd0177e299cca238174f1bb0e906ff911775aed66e15deb920c21a3
Contents?: true
Size: 715 Bytes
Versions: 17
Compression:
Stored size: 715 Bytes
Contents
class Auth::Work::InstructionsController < Auth::Work::WorkController include Auth::Concerns::Work::InstructionControllerConcern include Auth::Work::Instructions::InstructionsHelper ## only these actions need an authenticated user to be present for them to be executed. CONDITIONS_FOR_TOKEN_AUTH = [:create,:update,:destroy,:edit,:new] TCONDITIONS = {:only => CONDITIONS_FOR_TOKEN_AUTH} ##this ensures api access to this controller. include Auth::Concerns::DeviseConcern include Auth::Concerns::TokenConcern before_action :do_before_request , TCONDITIONS before_action :initialize_vars , TCONDITIONS before_action :is_admin_user , :only => [:create,:update,:destroy,:edit] end
Version data entries
17 entries across 17 versions & 1 rubygems