Sha256: 189c68c2d1118ece2ace9e25b236e8bbfc31d8ce694b199ac676d640ecb88aef

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

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

  include Rectify::ControllerHelpers
  include Shopper::CurrentOrder

  def current_customer
    Customer.create(email: 'email')
  end
  alias current_user current_customer
  helper_method :current_customer

  def fast_authenticate_customer!
    true
  end

  def root
    render 'root/index'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoppper-0.1.0 spec/dummy/app/controllers/application_controller.rb