Sha256: a19e2ab261425fbe2a8f10d7870983278acab560aa2b89e241a8ebf5529400e9
Contents?: true
Size: 673 Bytes
Versions: 41
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_filter :do_before_request , TCONDITIONS before_filter :initialize_vars , TCONDITIONS before_filter :is_admin_user , :only => [:create,:update,:destroy,:edit] end
Version data entries
41 entries across 41 versions & 1 rubygems
Version | Path |
---|---|
wordjelly-auth-0.0.1 | app/controllers/auth/shopping/products_controller.rb |