osem-fcy/app/models
Andrew Kvalheim 17366c6eab Update events when rated
When fragment caching is enabled—

    --- a/config/environments/test.rb
    +++ b/config/environments/test.rb
    @@ -27 +26,0 @@
    -  config.action_controller.perform_caching = false
    @@ -29 +27,0 @@
    -  config.cache_store = :null_store

—the test of voting fails with:

    expected to find css ".rating.bright" … 3 times but there were no matches
    expected to find visible css ".rating:not(.bright)" … 2 times, found 5 matches
    # ./spec/features/voting_spec.rb:31
    # ./spec/features/voting_spec.rb:30
    # ./spec/features/voting_spec.rb:53

i.e. the rating displayed on the event index is not updated after
voting, because while the fragment’s cache dependencies include the
event, voting doesn’t update the event.

re #2767
2023-03-01 11:33:21 -08:00
..
concerns
.gitkeep
.lodging.rb.swp
ability.rb
admin_ability.rb
answer.rb
application_record.rb
booth.rb
booth_request.rb
cfp.rb
comment.rb
commercial.rb
conference.rb
contact.rb
difficulty_level.rb
email_settings.rb
event.rb
event_schedule.rb
event_type.rb
event_user.rb
events_registration.rb
lodging.rb
openid.rb
organization.rb
payment.rb
physical_ticket.rb
program.rb
qanswer.rb
question.rb
question_type.rb
registration.rb
registration_period.rb
resource.rb
role.rb
room.rb
schedule.rb
splashpage.rb
sponsor.rb
sponsorship_level.rb
subscription.rb
survey.rb
survey_question.rb
survey_reply.rb
survey_submission.rb
ticket.rb
ticket_purchase.rb
ticket_scanning.rb
track.rb
user.rb
users_role.rb
vchoice.rb
vday.rb
venue.rb
vote.rb
vposition.rb