Sha256: dde977c81fd7b5ca6d01cc8f3e2cd360d9d9d71edb303521e01f79a5ae7a4a14

Contents?: true

Size: 742 Bytes

Versions: 41

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_filter :do_before_request , TCONDITIONS
  before_filter :initialize_vars , TCONDITIONS

  ## remember to add the before_filter is_admin as well.

  

end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
wordjelly-auth-1.4.2 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.4.0 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.3.9 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.3.8 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.3.7 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.3.6 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.3.5 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.3.3 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.3.2 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.3.1 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.3.0 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.2.9 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.2.8 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.2.6 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.2.5 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.2.4 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.2.3 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.2.2 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.2.1 app/controllers/auth/shopping/discounts_controller.rb
wordjelly-auth-1.2.0 app/controllers/auth/shopping/discounts_controller.rb