style: format code style in Gemfile and controllers

- Adjust spacing around the quotes in the Gemfile
- Standardize spacing in the arts_controller for improved readability
- Modify routes file for consistent array formatting

These changes enhance the consistency of code style across the project without altering any functionality or behavior.
This commit is contained in:
songtianlun 2025-01-23 17:33:01 +08:00
parent f33fb4d2ba
commit bafb90f5fb
3 changed files with 6 additions and 6 deletions

View File

@ -45,7 +45,7 @@ gem "devise", "~> 4.9"
gem "activeadmin", "~> 3.2"
gem "friendly_id", "~> 5.5"
gem 'kaminari', '~> 1.2'
gem "kaminari", "~> 1.2"
# gem "whenever", "~> 1.0"
gem "ruby-openai", "~> 7.3"

View File

@ -10,7 +10,7 @@ class ArtsController < ApplicationController
.where(countries: { region_id: @current_region.id })
end
@weather_arts = if params[:sort] == 'oldest'
@weather_arts = if params[:sort] == "oldest"
@weather_arts.order(created_at: :asc)
else
@weather_arts.order(created_at: :desc)