Class: Georgia::PermissionTablePresenter

Inherits:
Presenter
  • Object
show all
Defined in:
app/presenters/georgia/permission_table_presenter.rb

Instance Attribute Summary

Attributes inherited from Presenter

#view_context

Instance Method Summary collapse

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_sObject



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