Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Naming/VariableNumber:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/StringLiterals:
Enabled: false
Layout/LineLength:
Enabled: false
Style/StringConcatenation:
Enabled: false
1 change: 0 additions & 1 deletion .solargraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ require: []
domains: []
reporters:
- rubocop
- require_not_found
formatter:
rubocop:
cops: safe
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gem "propshaft"
gem "pg", "~> 1.1"

# Use the Puma web server [https://github.com/puma/puma]
gem "puma", "~> 5.0"
gem "puma", "~> 6.3"

# Bundle and transpile JavaScript [https://github.com/rails/jsbundling-rails]
gem "jsbundling-rails"
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ GEM
rack
railties (>= 7.0.0)
public_suffix (5.0.3)
puma (5.6.6)
puma (6.3.0)
nio4r (~> 2.0)
racc (1.7.1)
rack (2.2.8)
Expand Down Expand Up @@ -309,7 +309,7 @@ DEPENDENCIES
jsbundling-rails
pg (~> 1.1)
propshaft
puma (~> 5.0)
puma (~> 6.3)
rails (~> 7.0.6)
rspec
rspec-rails
Expand Down
2 changes: 2 additions & 0 deletions app/models/induction_period.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ class InductionPeriod < ApplicationRecord
belongs_to :mentorship
belongs_to :appropriate_body
belongs_to :induction_programme

scope :current, -> { where(finished_on: nil) }
end
2 changes: 2 additions & 0 deletions app/models/tenureship.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ class Tenureship < ApplicationRecord
belongs_to :teacher
belongs_to :school
has_many :mentorships

scope :current, -> { where(finished_on: nil) }
end