Sha256: b6d2ec737d2bbc1b877d2d3847ea4821016747d5b5841e9c86418eb40cefff70
Contents?: true
Size: 550 Bytes
Versions: 4
Compression:
Stored size: 550 Bytes
Contents
class Admin::ActivitiesController include Admin::ActivityTaxControllerHelper activities_scaffold_config do |config| %w( client_id label cost apply_tax tax comments ).each do |field| model_field = field.to_sym config.columns.add model_field config.columns[model_field].for_activities << 'material' config.update.columns << model_field config.update.columns.move_column_under :apply_tax, :cost end config.columns[:apply_tax].label = "Apply Tax?" end handle_extensions end
Version data entries
4 entries across 4 versions & 1 rubygems