Module: Csvbuilder::DynamicColumnsBase
- Extended by:
- ActiveSupport::Concern
- Includes:
- Model::DynamicColumns
- Defined in:
- lib/csvbuilder/dynamic/columns/core/concerns/dynamic_columns_base.rb
Constant Summary collapse
- ATTRIBUTE_METHODS =
{ original_attributes: :value, # a map of `column_name => original_attribute(column_name)` formatted_attributes: :formatted_cells # a map of `column_name => format_cell(column_name, ...)` }.freeze
Instance Method Summary collapse
Instance Method Details
#attribute_objects ⇒ Object
11 12 13 |
# File 'lib/csvbuilder/dynamic/columns/core/concerns/dynamic_columns_base.rb', line 11 def attribute_objects @attribute_objects ||= super.merge(dynamic_column_attribute_objects) end |
#attributes ⇒ Object
15 16 17 |
# File 'lib/csvbuilder/dynamic/columns/core/concerns/dynamic_columns_base.rb', line 15 def attributes super.merge!(attributes_from_method_names(self.class.dynamic_column_names)) end |