Skip to content

Commit

Permalink
Merge pull request #291 from kortirso/issue_290
Browse files Browse the repository at this point in the history
IS-290 fixed bug with creating oracul
  • Loading branch information
kortirso authored Apr 17, 2024
2 parents a82ac4e + 54abb88 commit 71b3ab9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require:
- rubocop-rspec
- rubocop-rails
- rubocop-factory_bot
- rubocop-rspec_rails

AllCops:
Exclude:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased
### Fixed
- bug with creating oracul

## [1.2.5] - 2024-04-03
### Added
- create users with only username
Expand Down
2 changes: 1 addition & 1 deletion app/forms/oraculs/create_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def create_forecasts(oracul, oracul_place, periodable_ids)
grouped_ids, forecastable_type = find_grouped_ids(oracul_place, periodable_ids)
objects = []
oracul.oraculs_lineups.hashable_pluck(:id, :periodable_id).each do |oraculs_lineup|
grouped_ids[oraculs_lineup[:periodable_id]].each do |forecastable_id|
grouped_ids[oraculs_lineup[:periodable_id]]&.each do |forecastable_id|
objects << {
uuid: SecureRandom.uuid,
oraculs_lineup_id: oraculs_lineup[:id],
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/locales/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@
"telegram": "Телеграм"
},
"oraculForm": {
"new": "Новый оракл",
"description": "В этой форме вам необходимо указать имя вашего оракла",
"new": "Новый оракул",
"description": "В этой форме вам необходимо указать имя вашего оракула",
"name": "Имя",
"save": "Сохранить"
},
Expand Down
2 changes: 1 addition & 1 deletion config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ ru:
league_does_not_exist: Лига не существует
oraculs:
create:
not_unique: Оракл уже создан
not_unique: Оракул уже создан
auth:
fetch_session:
forbidden: Доступ запрещён
Expand Down

0 comments on commit 71b3ab9

Please sign in to comment.