Module: Coupdoeil::Popover::ViewContextDelegation
- Defined in:
- app/models/coupdoeil/popover/view_context_delegation.rb
Instance Attribute Summary collapse
-
#__cp_view_context ⇒ Object
Returns the value of attribute __cp_view_context.
-
#popover ⇒ Object
Returns the value of attribute popover.
Instance Method Summary collapse
-
#config ⇒ Object
For CSRF authenticity tokens in forms.
- #controller ⇒ Object
- #form_authenticity_token ⇒ Object
- #helpers ⇒ Object
- #params ⇒ Object
- #protect_against_forgery? ⇒ Boolean
- #request_forgery_protection_token ⇒ Object
Instance Attribute Details
#__cp_view_context ⇒ Object
Returns the value of attribute __cp_view_context.
6 7 8 |
# File 'app/models/coupdoeil/popover/view_context_delegation.rb', line 6 def __cp_view_context @__cp_view_context end |
#popover ⇒ Object
Returns the value of attribute popover.
6 7 8 |
# File 'app/models/coupdoeil/popover/view_context_delegation.rb', line 6 def popover @popover end |
Instance Method Details
#config ⇒ Object
For CSRF authenticity tokens in forms
9 |
# File 'app/models/coupdoeil/popover/view_context_delegation.rb', line 9 def config = __cp_view_context.config |
#controller ⇒ Object
15 |
# File 'app/models/coupdoeil/popover/view_context_delegation.rb', line 15 def controller = __cp_view_context.controller |
#form_authenticity_token ⇒ Object
10 |
# File 'app/models/coupdoeil/popover/view_context_delegation.rb', line 10 def form_authenticity_token(...) = __cp_view_context.form_authenticity_token(...) |
#helpers ⇒ Object
14 |
# File 'app/models/coupdoeil/popover/view_context_delegation.rb', line 14 def helpers = __cp_view_context |
#params ⇒ Object
16 |
# File 'app/models/coupdoeil/popover/view_context_delegation.rb', line 16 def params = popover.params |
#protect_against_forgery? ⇒ Boolean
11 |
# File 'app/models/coupdoeil/popover/view_context_delegation.rb', line 11 def protect_against_forgery? = __cp_view_context.protect_against_forgery? |
#request_forgery_protection_token ⇒ Object
12 |
# File 'app/models/coupdoeil/popover/view_context_delegation.rb', line 12 def request_forgery_protection_token = __cp_view_context.request_forgery_protection_token |