Admin reports with accounts (#2092)
* Add a ReportFilter class * Add reports and targeted_reports relationships to Account * Use ReportFilter from admin/reports controller * Link to admin/reports filtered views from admin account show view * Add indexes to reports.account_id and reports.target_account_id
parent
f23281e3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/controllers/admin/reports_controller.rb 7 ajouts, 3 suppressionsapp/controllers/admin/reports_controller.rb
- app/helpers/admin/filter_helper.rb 1 ajout, 1 suppressionapp/helpers/admin/filter_helper.rb
- app/models/account.rb 4 ajouts, 0 suppressionapp/models/account.rb
- app/models/report_filter.rb 30 ajouts, 0 suppressionapp/models/report_filter.rb
- app/views/admin/accounts/show.html.haml 6 ajouts, 0 suppressionapp/views/admin/accounts/show.html.haml
- config/locales/en.yml 4 ajouts, 0 suppressionconfig/locales/en.yml
- db/migrate/20170418160728_add_indexes_to_reports_for_accounts.rb 6 ajouts, 0 suppression...ate/20170418160728_add_indexes_to_reports_for_accounts.rb
- db/schema.rb 3 ajouts, 1 suppressiondb/schema.rb
- spec/models/report_filter_spec.rb 31 ajouts, 0 suppressionspec/models/report_filter_spec.rb
Chargement en cours
Veuillez vous inscrire ou vous se connecter pour commenter