Skip to content
Merged
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
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ gem 'rubocop', '>= 1.58', '< 2.0'
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem 'rails', '~> 8.0.0'

# Required for Ruby 3.5+ compatibility
gem 'ostruct'

# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
gem 'sprockets-rails'

Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ GEM
actionpack (>= 4.2)
omniauth (~> 2.0)
orm_adapter (0.5.0)
ostruct (0.6.3)
pagy (6.0.4)
parallel (1.27.0)
parser (3.3.9.0)
Expand Down Expand Up @@ -484,6 +485,7 @@ DEPENDENCIES
omniauth-github (~> 2.0.0)
omniauth-google-oauth2
omniauth-rails_csrf_protection
ostruct
pagy (~> 6.0)
pg (~> 1.1)
puma (~> 6.0)
Expand Down
2 changes: 1 addition & 1 deletion app/models/json_web_token.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class JsonWebToken
SECRET_KEY = Rails.application.secrets.secret_key_base.to_s
SECRET_KEY = Rails.application.secret_key_base.to_s

def self.encode(payload, exp = 24.hours.from_now)
payload[:exp] = exp.to_i
Expand Down