Class: Georgia::PaginationPresenter
- Defined in:
- app/presenters/georgia/pagination_presenter.rb
Defined Under Namespace
Classes: SearchCount
Instance Attribute Summary
Attributes inherited from Presenter
Instance Method Summary collapse
-
#initialize(view_context, search, options) ⇒ PaginationPresenter
constructor
A new instance of PaginationPresenter.
- #to_s ⇒ Object
Constructor Details
#initialize(view_context, search, options) ⇒ PaginationPresenter
Returns a new instance of PaginationPresenter.
4 5 6 7 8 |
# File 'app/presenters/georgia/pagination_presenter.rb', line 4 def initialize view_context, search, super @search = search @options = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Georgia::Presenter
Instance Method Details
#to_s ⇒ Object
10 11 12 13 14 15 |
# File 'app/presenters/georgia/pagination_presenter.rb', line 10 def to_s return unless @search and !@search.total_count.zero? content_tag(:div, class: 'header-pagination') do search_count_tag + end end |