Sha256: b93fddd6da0f8a638a3b1e4c618298b2d2ba96c08dad25032dbfc54a93cfa44b
Contents?: true
Size: 432 Bytes
Versions: 7
Compression:
Stored size: 432 Bytes
Contents
module Phcmemberspro class ApplicationController < ActionController::Base # Load Helpers helper Mtdevise::Engine.helpers helper Phctitler::Engine.helpers helper Phcnotifi::Engine.helpers # Callup Current Account def current_account @current_account ||= env['Houser-Object'] end helper_method :current_account # Define Scoped_to def scoped_to(account) where(:account_id => account.id) end end end
Version data entries
7 entries across 7 versions & 1 rubygems