today_ai_weather/app/models
songtianlun afcb9c6cd8 refactor: simplify scope limit parameters
- Change `limit:` to `limit =` in the scopes for
  `latest` and `by_popularity`.
- This allows for a default value of 100 to be used
  if no argument is provided, making the code more
  user-friendly and consistent.

This refactor does not alter the behavior of the
existing functionality but streamlines the syntax.
2025-02-12 18:00:30 +08:00
..
ahoy chore: clean up trailing whitespace and formatting 2025-01-27 00:43:36 +08:00
concerns init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
admin_user.rb chore: clean up code style and unused fixtures 2025-01-20 18:08:55 +08:00
application_record.rb init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
city.rb refactor: update popularity scope and controller logic 2025-02-12 17:54:57 +08:00
country.rb migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
region.rb migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
state.rb migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
subregion.rb migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
user.rb feat: enhance user authentication features 2025-02-11 16:18:10 +08:00
weather_art.rb refactor: simplify scope limit parameters 2025-02-12 18:00:30 +08:00