today_ai_weather/app
songtianlun 0a6926421f refactor: update popularity scope and controller logic
- Change `by_popularity` method in `City` model to use `start_time` for filtering views.
- Update `by_popularity` in `WeatherArt` model to limit results and incorporate the correct popularity calculation.
- Adjust `HomeController` to define `@popular_shuffle_arts` and `@latest_arts` with appropriate scopes.

These changes improve the accuracy of popularity retrieval for both cities and weather arts, simplifying the logic in the controller and leveraging updated model methods for performance.
2025-02-12 17:54:57 +08:00
..
admin refactor: update popularity scope and controller logic 2025-02-12 17:54:57 +08:00
assets feat: add loading spinner and search updates 2025-02-12 14:47:30 +08:00
concerns style: format code for consistency 2025-01-23 19:03:14 +08:00
controllers refactor: update popularity scope and controller logic 2025-02-12 17:54:57 +08:00
helpers feat: add admin management features for cities 2025-02-11 17:40:13 +08:00
javascript feat: add loading spinner and search updates 2025-02-12 14:47:30 +08:00
mailers init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
models refactor: update popularity scope and controller logic 2025-02-12 17:54:57 +08:00
services feat: enhance image generation prompt clarity 2025-02-12 11:56:09 +08:00
views fix: add turbo_frame data attribute to buttons 2025-02-12 14:59:19 +08:00
workers refactor: update popularity scope and controller logic 2025-02-12 17:54:57 +08:00