Sha256: de8c9afb35f39f1688b0802a00e3bf4c7ee0f2211b39095ecadee38ac9e15204

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 Bytes

Contents

module ShoppingCart
  class ApplicationController < ActionController::Base
    protect_from_forgery with: :exception

    before_action "authenticate_#{ShoppingCart.user_class.downcase}!".to_sym

    alias_method :current_user, "current_#{ShoppingCart.user_class.downcase}".to_sym
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shopping-cart-0.1.1 app/controllers/shopping_cart/application_controller.rb
shopping-cart-0.1.0 app/controllers/shopping_cart/application_controller.rb