Class: Releaf::Settings::TableBuilder

Inherits:
Builders::TableBuilder show all
Defined in:
app/builders/releaf/settings/table_builder.rb

Instance Attribute Summary

Attributes inherited from Builders::TableBuilder

#collection, #options, #resource_class, #template

Instance Method Summary collapse

Methods inherited from Builders::TableBuilder

#association_column?, #association_name, #body, #cell, #cell_content, #cell_content_method, #cell_format_method, #cell_method, #column_klass, #column_type, #column_type_format_method, #column_value, #columns, #columns_schema, #empty_body, #format_association_content, #format_boolean_content, #format_date_content, #format_datetime_content, #format_richtext_content, #format_string_content, #format_text_content, #format_textarea_content, #format_time_content, #head, #head_cell, #head_cell_content, #initialize, #output, #row, #row_attributes, #row_url, #row_url_action, #table_attributes, #toolbox_cell, #type_format_method

Methods included from Builders::Toolbox

#toolbox, #toolbox_button, #toolbox_menu

Methods included from Builders::Base

#default_translation_scope, #html_escape, #icon, #layout_settings, #locale_options, #resource_title, #safe_join, #t, #tag, #template_variable, #translate_locale, #wrapper

Constructor Details

This class inherits a constructor from Releaf::Builders::TableBuilder

Instance Method Details

#column_namesObject



2
3
4
# File 'app/builders/releaf/settings/table_builder.rb', line 2

def column_names
  [:var, :value, :updated_at]
end

#value_content(resource) ⇒ Object



6
7
8
# File 'app/builders/releaf/settings/table_builder.rb', line 6

def value_content(resource)
  send(type_format_method(resource.input_type), resource, :value)
end