Commit graph

15 commits

Author SHA1 Message Date
Ari Timonen
f6b30be278 Improve contest page and match list for maps
Improve brackets
Update gitignore and docs.
2020-03-28 22:39:41 +02:00
Ari Timonen
fa7c32c507 Belongs_to has optional true 2020-03-26 04:26:30 +02:00
Ari Timonen
420930f2b9 Fix teams and weeks 2020-03-25 04:30:37 +02:00
Ari Timonen
e59e8ac8e7 Lots of rails 4 updates
- Add .params to models and update controllers
- Add afk time to gather
- Reannotate models
- Fix rspec problem by using latest rspec plugins from github
2020-03-18 05:38:17 +02:00
Ari Timonen
fa4fbb589d Change before_filter and remove attr_protected 2020-03-17 01:57:47 +02:00
Ari Timonen
2c71b1147d Merge rails-4 to rails4 2020-03-14 21:10:24 +02:00
Ari Timonen
11fcea3259 Add docker dev version
Add env and docker files for development

Fix some random things related to rails upgrade
2019-09-24 22:55:34 +03:00
Absurdon
e93588591b
Fix #131 Updating users may fail
Issue:
When a team gets deleted team_id is not properly cleared from users who
have set the team to be deleted as their main. When now someone trys
an operation that validates the user it fails as the team_id set on that
user is not valid anymore.

Solution:
To prevent this from happening in the future update users and set
team_id to nil.

Clean up:
To clean up existing users run
UPDATE users SET team_id=NULL WHERE team_id NOT IN(SELECT id FROM
teams);
2019-08-24 20:17:14 +02:00
Ari Timonen
ce9797aed8 More progress on Rails 4.1 update
Just fix scopes mostly.

Add binstubs.
2019-06-03 15:38:24 -04:00
Luke Barratt
54e4c6a4bb Removed potentially dangerous regex warning 2015-08-15 20:26:57 +01:00
Ari Timonen
748fbdb151 Fix access check bug 2015-06-27 14:25:08 +02:00
Ari Timonen
a376a4c063 Fix access check bug 2015-06-27 14:25:08 +02:00
Luke Barratt
8e3670f430 Merged in changes from https://github.com/taekwonjoe01/ensl.org 2014-04-27 03:11:47 +01:00
Luke Barratt
4199062a9c Initial article text code
Added model annotations
2014-03-26 11:09:39 +00:00
Luke Barratt
6bcc8dc76b Purged git history and removed sensitive information. 2014-03-23 00:22:25 +00:00