Sha256: c819389c027d36133bed6d05361151d9892a3f3c07279d2c5daa00ce4bc7fdb2
Contents?: true
Size: 614 Bytes
Versions: 17
Compression:
Stored size: 614 Bytes
Contents
class Auth::Shopping::PlacesController < Auth::Shopping::ShoppingController include Auth::Concerns::Shopping::PlaceControllerConcern ## 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_action :do_before_request , TCONDITIONS before_action :initialize_vars , TCONDITIONS end
Version data entries
17 entries across 17 versions & 1 rubygems