Sha256: 9cb79fef8bda8507089b4cbe406d240513da38abc2bee38385e4ed9dfcd13fb3

Contents?: true

Size: 742 Bytes

Versions: 18

Compression:

Stored size: 742 Bytes

Contents

class Auth::Shopping::DiscountsController < Auth::Shopping::ShoppingController
  
  include Auth::Concerns::Shopping::DiscountControllerConcern
  ## only these actions need an authenticated user to be present for them to be executed.
  ## SHOW IS EXCLUDED SO THAT NON SIGNED IN USERS CAN view any discount/ product bundle.
  CONDITIONS_FOR_TOKEN_AUTH = [:create,:update,:destroy,:edit,:new,:index]

  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

  ## remember to add the before_filter is_admin as well.

  

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
wordjelly-auth-1.6.0 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.5.9 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.5.8 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.5.7 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.5.6 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.5.5 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.5.4 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.5.3 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.5.2 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.5.1 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.5.0 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.4.9 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.4.8 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.4.7 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.4.6 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.4.5 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.4.4 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.4.3 app/controllers/auth/shopping/discounts_controller.rb