Class: Locomotive::GlobalActionsCell
- Defined in:
- app/cells/locomotive/global_actions_cell.rb
Instance Attribute Summary collapse
-
#current_locomotive_account ⇒ Object
readonly
Returns the value of attribute current_locomotive_account.
-
#current_site_url ⇒ Object
readonly
Returns the value of attribute current_site_url.
Attributes inherited from MenuCell
Instance Method Summary collapse
Methods inherited from MenuCell
#initialize, update_for, #url_options
Constructor Details
This class inherits a constructor from Locomotive::MenuCell
Instance Attribute Details
#current_locomotive_account ⇒ Object (readonly)
Returns the value of attribute current_locomotive_account.
4 5 6 |
# File 'app/cells/locomotive/global_actions_cell.rb', line 4 def current_locomotive_account @current_locomotive_account end |
#current_site_url ⇒ Object (readonly)
Returns the value of attribute current_site_url.
4 5 6 |
# File 'app/cells/locomotive/global_actions_cell.rb', line 4 def current_site_url @current_site_url end |
Instance Method Details
#show(args) ⇒ Object
6 7 8 9 10 |
# File 'app/cells/locomotive/global_actions_cell.rb', line 6 def show(args) @current_locomotive_account = args[:current_locomotive_account] @current_site_url = args[:current_site_url] super end |