Sha256: e30324d91f433354d55f711e2853c17c157b12a4d58789691031e1ee43ce8021
Contents?: true
Size: 673 Bytes
Versions: 18
Compression:
Stored size: 673 Bytes
Contents
class Auth::Shopping::ProductsController < Auth::Shopping::ShoppingController include Auth::Concerns::Shopping::ProductControllerConcern ## 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
18 entries across 18 versions & 1 rubygems