Sha256: 3f8cfff6f6687fd8bfb53cc8a0252a148531310551f02a4604b9f186222e270e
Contents?: true
Size: 677 Bytes
Versions: 6
Compression:
Stored size: 677 Bytes
Contents
class Auth::Work::CommunicationsController < Auth::Work::WorkController include Auth::Concerns::Work::CommunicationControllerConcern ## 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_filter :do_before_request , TCONDITIONS before_filter :initialize_vars , TCONDITIONS before_filter :is_admin_user , :only => [:create,:update,:destroy,:edit] end
Version data entries
6 entries across 6 versions & 1 rubygems