Sha256: df3b2168b0cc1354ba87b0e817fa176933b1e78782e46b9f08b4923b53b7fe33
Contents?: true
Size: 638 Bytes
Versions: 38
Compression:
Stored size: 638 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 def phcmemberspro_membersmain_layouts_resolver case action_name when "show" "layouts/phcmemberspro/members/members_profile" else "layouts/phcmemberspro/members/members_all" end end end end
Version data entries
38 entries across 38 versions & 1 rubygems