Skip to content

Commit

Permalink
test with rails 8
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Nov 1, 2024
1 parent a9772ed commit 39c82f0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source 'https://rubygems.org'
gemspec

group :test do
gem 'rails', '7.2.1'
gem 'rails', '8.0.0.rc2'
gem 'rake', '~> 13.0'
gem 'rubocop', '~> 1.0'
gem 'rubocop-performance', '~> 1.5'
Expand Down
2 changes: 1 addition & 1 deletion angular_rails_csrf.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |s|

s.required_ruby_version = '>= 3.0'

s.add_dependency 'railties', '>= 3', '< 8'
s.add_dependency 'railties', '>= 3', '< 9'

s.metadata = {
'rubygems_mfa_required' => 'true'
Expand Down
2 changes: 2 additions & 0 deletions lib/angular_rails_csrf/concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def cookie_options_from(config)
# Fetches the given option from config
# If the option is not set, return a default value
def option_from(config, option, default = nil)
return default if config.nil?

config.respond_to?(option) ? config.send(option) : default
end

Expand Down
2 changes: 1 addition & 1 deletion test/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ class Application < Rails::Application
'437711d0ad314baf13efc0d35d7568d2e469668a7021cf5e945c667bd16507777aedb770f83'
config.eager_load = false # You get yelled at if you don't set this
config.active_support.test_order = :random
config.load_defaults 7.0
config.load_defaults 8.0
end
end

0 comments on commit 39c82f0

Please sign in to comment.