Class: Admino::Query::ScopePresenter
- Inherits:
-
Showcase::Presenter
- Object
- Showcase::Presenter
- Admino::Query::ScopePresenter
- Defined in:
- lib/admino/query/scope_presenter.rb
Instance Method Summary collapse
-
#initialize(object, parent, view_context) ⇒ ScopePresenter
constructor
A new instance of ScopePresenter.
- #link(*args) ⇒ Object
Constructor Details
#initialize(object, parent, view_context) ⇒ ScopePresenter
Returns a new instance of ScopePresenter.
6 7 8 9 |
# File 'lib/admino/query/scope_presenter.rb', line 6 def initialize(object, parent, view_context) super(object, view_context) @parent = parent end |
Instance Method Details
#link(*args) ⇒ Object
11 12 13 |
# File 'lib/admino/query/scope_presenter.rb', line 11 def link(*args) @parent.scope_link(object, *args) end |