Sha256: 76206c5a1b7a8f3d091f18048f1233a0619fe2afef24ac58049b0c3f51d98bc9

Contents?: true

Size: 316 Bytes

Versions: 6

Compression:

Stored size: 316 Bytes

Contents

module Tang
  class Account::ApplicationController < ApplicationController
    before_action :ensure_customer

    def ensure_customer
      authenticate_user! if self.respond_to?(:authenticate_user!)
      @current_customer = current_user
    end

    def current_customer
      @current_customer
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tang-0.2.2 app/controllers/tang/account/application_controller.rb
tang-0.2.1 app/controllers/tang/account/application_controller.rb
tang-0.2.0 app/controllers/tang/account/application_controller.rb
tang-0.1.0 app/controllers/tang/account/application_controller.rb
tang-0.0.9 app/controllers/tang/account/application_controller.rb
tang-0.0.8 app/controllers/tang/account/application_controller.rb