Sha256: 282048d3370ba4a5289e69d1afd65e9323740b5669b69dc6e236ab4e4a19cf03
Contents?: true
Size: 637 Bytes
Versions: 3
Compression:
Stored size: 637 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/phcmemberspromembers/members_all" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems