Class: Georgia::PermissionTablePresenter
- Defined in:
- app/presenters/georgia/permission_table_presenter.rb
Instance Attribute Summary
Attributes inherited from Presenter
Instance Method Summary collapse
-
#initialize(context, title, actions) ⇒ PermissionTablePresenter
constructor
A new instance of PermissionTablePresenter.
- #to_s ⇒ Object
Constructor Details
#initialize(context, title, actions) ⇒ PermissionTablePresenter
Returns a new instance of PermissionTablePresenter.
4 5 6 7 8 |
# File 'app/presenters/georgia/permission_table_presenter.rb', line 4 def initialize context, title, actions super @title = title @actions = actions 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/permission_table_presenter.rb', line 10 def to_s html = ActiveSupport::SafeBuffer.new html << title_tag html << table html.to_s.html_safe end |