Class: Phcmemberspro::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Phcmemberspro::ApplicationController
- Defined in:
- app/controllers/phcmemberspro/application_controller.rb
Direct Known Subclasses
Directory::CategoriesController, Directory::CatlistsController, Members::ContactsController, Members::ListingsController, Members::MainsController
Instance Method Summary collapse
-
#current_account ⇒ Object
Callup Current Account.
-
#scoped_to(account) ⇒ Object
Define Scoped_to.
Instance Method Details
#current_account ⇒ Object
Callup Current Account
8 9 10 |
# File 'app/controllers/phcmemberspro/application_controller.rb', line 8 def current_account @current_account ||= env['Houser-Object'] end |
#scoped_to(account) ⇒ Object
Define Scoped_to
14 15 16 |
# File 'app/controllers/phcmemberspro/application_controller.rb', line 14 def scoped_to(account) where(:account_id => account.id) end |