Class: DataRecord
- Inherits:
-
DataList
- Object
- ApplicationRecord
- DataList
- DataRecord
show all
- Defined in:
- app/models/rails_data/data_lists/data_record.rb
Instance Method Summary
collapse
Methods inherited from DataList
#config_excel, #config_params, #config_pdf, #config_table, #form_parameters
Instance Method Details
#config_columns ⇒ Object
14
15
16
|
# File 'app/models/rails_data/data_lists/data_record.rb', line 14
def config_columns
config_table.columns.transform_values { |x| x[:as] }
end
|
#rebuild! ⇒ Object
5
6
7
8
|
# File 'app/models/rails_data/data_lists/data_record.rb', line 5
def rebuild!
self.columns = self.config_params
super
end
|
#update_parameters ⇒ Object
10
11
12
|
# File 'app/models/rails_data/data_lists/data_record.rb', line 10
def update_parameters
self.columns = config_columns
end
|