Sha256: 8733847ad9da7b77d4e1970dfdbb3a19820f19083582ece7ba20dd6c9ed6378c
Contents?: true
Size: 625 Bytes
Versions: 30
Compression:
Stored size: 625 Bytes
Contents
class Auth::Shopping::CartItemsController < Auth::Shopping::ShoppingController include Auth::Concerns::Shopping::CartItemControllerConcern ## only these actions need an authenticated user to be present for them to be executed. CONDITIONS_FOR_TOKEN_AUTH = [:create,:update,:destroy,:edit,:new,:index,:show,:create_multiple] 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 end
Version data entries
30 entries across 30 versions & 1 rubygems