File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
require 'angular_rails_csrf/railtie'
4
+
5
+ module AngularRailsCsrf
6
+ def self . deprecator
7
+ @deprecator ||= ActiveSupport ::Deprecation . new ( '7.0' , 'angular_rails_csrf' )
8
+ end
9
+ end
Original file line number Diff line number Diff line change @@ -12,9 +12,11 @@ class Railtie < ::Rails::Railtie
12
12
13
13
initializer 'angular-rails-csrf.deprecation_notice' do |_app |
14
14
unless Rails . env . test? || ENV [ 'ANGULAR_RAILS_CSRF_SILENCE' ]
15
- ActiveSupport :: Deprecation . warn (
15
+ AngularRailsCsrf . deprecator . warn (
16
16
'[angular_rails_csrf] This gem is under passive maintenance and may be sunset in the future. ' \
17
- 'Open an issue if you rely on it and want it to live on: https://github.com/bodrovis/angular_rails_csrf/issues'
17
+ 'Open an issue if you rely on it and want it to live on: ' \
18
+ 'https://github.com/bodrovis/angular_rails_csrf/issues. ' \
19
+ 'Set ANGULAR_RAILS_CSRF_SILENCE to silence this warning.'
18
20
)
19
21
end
20
22
end
You can’t perform that action at this time.
0 commit comments