rails-persona 0.2.6 → 0.2.7
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/persona/railtie.rb +4 -3
- data/lib/persona/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75daec51a98411a1d4ccca20210fb10a802a4e96dca2bfae22bbf80751e92673
|
|
4
|
+
data.tar.gz: 39eabe62e305c7ac509236f9bd4b2234198f3a305cde5bcf8e043e6c2c0ca761
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 440fac3b90df76b3059da34a9be888a0f4704c1408c803fa28c0560a6de923c11e8db1b5e6ebe517714a7398d128f09e0eb023ab9438555a96715226a77ca0d4
|
|
7
|
+
data.tar.gz: 2cd4f2544de8041e25f65e031f3a92742b554907b3d181296b3ee82a386591a2d93090452e1245a1462ec8ef39d512955591baca2d7ad7d36d630406d8d1b860
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.7] - 2026-06-01
|
|
4
|
+
### Fixed
|
|
5
|
+
- Use `before: :set_autoload_paths` initializer ordering to avoid FrozenError when adding to autoload_paths (fixes #14)
|
|
6
|
+
|
|
3
7
|
## [0.2.6] - 2026-06-01
|
|
4
8
|
### Fixed
|
|
5
9
|
- Use `config.before_initialize` instead of initializer for autoload_paths to avoid FrozenError in Rails 7 (fixes #14)
|
data/lib/persona/railtie.rb
CHANGED
|
@@ -9,12 +9,13 @@ module Persona
|
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
app.config.autoload_paths
|
|
12
|
+
initializer "persona.autoload_paths", before: :set_autoload_paths do |app|
|
|
13
|
+
app.config.autoload_paths << File.expand_path("../../app/models", __dir__)
|
|
14
|
+
app.config.eager_load_paths << File.expand_path("../../app/models", __dir__)
|
|
14
15
|
end
|
|
15
16
|
|
|
16
17
|
rake_tasks do
|
|
17
18
|
load File.expand_path("../../tasks/persona_tasks.rake", __dir__)
|
|
18
19
|
end
|
|
19
20
|
end
|
|
20
|
-
end
|
|
21
|
+
end
|
data/lib/persona/version.rb
CHANGED