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 Use url instead object in image_tag 2019-07-17 00:13:24 +02:00
ability.rb Make use of ENV.fetch 2022-05-06 14:53:57 +02:00
admin_ability.rb Make use of ENV.fetch 2022-05-06 14:53:57 +02:00
answer.rb
application_record.rb
booth.rb
booth_request.rb
cfp.rb
comment.rb
commercial.rb
conference.rb Fix HasManyThroughOrderErrors 2022-02-23 14:36:05 +01:00
contact.rb
difficulty_level.rb
email_settings.rb Make use of ENV.fetch 2022-05-06 14:53:57 +02:00
event.rb Include helper that provides number_with_precision 2021-08-18 15:36:54 +02:00
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 👋 update_attributes 2022-02-23 14:36:05 +01:00
qanswer.rb
question.rb
question_type.rb
registration.rb Remove travel schedule from registration 2021-03-06 04:09:02 +01:00
registration_period.rb
resource.rb
role.rb Drop halt_callback_chains_on_return_false 2019-05-05 09:40:49 +02:00
room.rb
schedule.rb
splashpage.rb
sponsor.rb
sponsorship_level.rb
subscription.rb
survey.rb Correct assumption of survey start and end dates 2022-03-16 14:12:01 -07:00
survey_question.rb Migrate to fontawesome 6 2022-05-18 06:33:47 +02:00
survey_reply.rb
survey_submission.rb
ticket.rb
ticket_purchase.rb 👋 update_attributes 2022-02-23 14:36:05 +01:00
ticket_scanning.rb
track.rb
user.rb Make use of ENV.fetch 2022-05-06 14:53:57 +02:00
users_role.rb
vchoice.rb
vday.rb
venue.rb Update venue country name for Countries 4.2 2022-03-06 23:05:29 -08:00
vote.rb Update events when rated 2023-03-01 11:33:21 -08:00
vposition.rb