unpoly-rails 3.8.0 → 3.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,8 +42,10 @@ module Unpoly
42
42
  end
43
43
  end
44
44
 
45
- ::ActionController::Base.prepend(self)
46
-
47
45
  end
48
46
  end
49
47
  end
48
+
49
+ ActiveSupport.on_load(:action_controller_base) do
50
+ prepend Unpoly::Rails::Controller
51
+ end
@@ -28,8 +28,10 @@ module Unpoly
28
28
  response.headers['X-Up-Method'] = request.method
29
29
  end
30
30
 
31
- ::ActionController::Base.send(:include, self)
32
-
33
31
  end
34
32
  end
35
33
  end
34
+
35
+ ActiveSupport.on_load(:action_controller_base) do
36
+ include Unpoly::Rails::RequestEchoHeaders
37
+ end
@@ -33,8 +33,10 @@ module Unpoly
33
33
  end
34
34
  end
35
35
 
36
- ActionController::Base.send(:include, self)
37
-
38
36
  end
39
37
  end
40
38
  end
39
+
40
+ ActiveSupport.on_load(:action_controller_base) do
41
+ include Unpoly::Rails::RequestMethod
42
+ end
@@ -3,6 +3,6 @@ module Unpoly
3
3
  ##
4
4
  # The current version of the unpoly-rails gem.
5
5
  # The first 3 digits should match the version of the Unpoly frontend code.
6
- VERSION = '3.8.0'
6
+ VERSION = '3.9.0'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unpoly-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.0
4
+ version: 3.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-21 00:00:00.000000000 Z
11
+ date: 2024-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties