inertia_rails 3.8.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c17e6224188fa7a4299b694eb6747091f20259c78a05d26604cac21ed52d8eb
4
- data.tar.gz: cf0fc91563c2f5ec178fcf815132354c245eb7ceb6ce0dda7f7f4d29339a57fe
3
+ metadata.gz: 4b7d385cab4b5bdd84cc50c1c9e22d838ce8f77fc680542ba1b0a11d17c95674
4
+ data.tar.gz: 472113f1732205c105f10a069070fb1c6b226ffdf176e57fb15fc66cf7a0bdd2
5
5
  SHA512:
6
- metadata.gz: 677bc4c32845494734ef8b453ce2a0d9096803bdc9037701ccb09288ac0f815de1a4b9406687c7387aad6c82de329e5cd8eb2d5aa6275a539129849bd01a4c22
7
- data.tar.gz: b8ae423e24556d08d4bd51413a0ebf84793f1f41e19c28784dbfc58aab2a8a7330767e5b60a22c3011e38366ace5db70ab62a4e932b1e379799d1c69da0ddd36
6
+ metadata.gz: b18d7f00080810908560268ad97da13079b3c89d7fee8aee3b4edcb45d011aae7d16fdff8f9697b953fa7e4e76034eb9d9e9afa1cf79ca6f946cb7810222b83e
7
+ data.tar.gz: 80805ac8753cdc1469de52a6f92fceb186e735070d1cc81b44ce93fc62218bea6fc7e515a2950a06f5fb1951aaa6dc2fc6fd40c6b958e5b453be6a2470c3103d
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [3.9.0] - 2025-06-18
8
+
9
+ * Docs updates
10
+ * Add `parent_controller` configuration option for static Inertia routes
11
+
7
12
  ## [3.8.0] - 2025-04-12
8
13
 
9
14
  * Docs updates
@@ -1,5 +1,5 @@
1
1
  module InertiaRails
2
- class StaticController < ::ApplicationController
2
+ class StaticController < InertiaRails.configuration.parent_controller.constantize
3
3
  def static
4
4
  render inertia: params[:component]
5
5
  end
@@ -25,6 +25,9 @@ module InertiaRails
25
25
 
26
26
  # Used to detect version drift between server and client.
27
27
  version: nil,
28
+
29
+ # Allows configuring the base controller for StaticController
30
+ parent_controller: '::ApplicationController',
28
31
  }.freeze
29
32
 
30
33
  OPTION_NAMES = DEFAULTS.keys.freeze
@@ -1,3 +1,3 @@
1
1
  module InertiaRails
2
- VERSION = "3.8.0"
2
+ VERSION = "3.9.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inertia_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
  - Brian Knoles
@@ -9,7 +9,7 @@ authors:
9
9
  - Eugene Granovsky
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-04-12 00:00:00.000000000 Z
12
+ date: 2025-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties