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

Version Path
phcmemberspro-5.2.6 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.2.5 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.2.4 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.2.3 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.2.2 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.2.1 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.2.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.1.5 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.1.4 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.1.3 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.1.2 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.1.1 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.1.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.0.6 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.0.5 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.0.4 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.0.3 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.0.2 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.0.1 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-5.0.0 app/controllers/phcmemberspro/application_controller.rb