Sha256: 3ec2990a5d9bf7ef9df251c7dea2405e79c9e69b70afd6787501ff0a2603751b
Contents?: true
Size: 671 Bytes
Versions: 17
Compression:
Stored size: 671 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
17 entries across 17 versions & 1 rubygems