drhenner/ror_ecommerce

View on GitHub
app/controllers/myaccount/base_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Myaccount::BaseController < ApplicationController
  helper_method :selected_myaccount_tab
  before_action :require_user
  before_action :expire_all_browser_cache

  protected
  def myaccount_tab
    true
  end

  def ssl_required?
    ssl_supported?
  end

  def selected_myaccount_tab(tab)
    tab == ''
  end
end