tosspayments2-rails 0.5.3 → 0.5.4
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 +5 -0
- data/lib/tosspayments2/rails/engine.rb +6 -1
- data/lib/tosspayments2/rails/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: cb82f0d033bad60126af50821b849025ea3af57657cb80689cba3f49cb1b7d97
|
4
|
+
data.tar.gz: 19a61b3288da058e9c9d4f1f900ff2eb712f73aef759247f92e1257dc5afec7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfd24b58428ce7dcb17444d863882f2db0b5be9d303b4b24150a6b24576d0f6d68baa8bfdef34f1336f554ce94353d17f91ba4254818369f0300a798167658ad
|
7
|
+
data.tar.gz: 484359c4c87bd16efabde9bc651ff341a04df54eaa378721d818a0618598c837fa1ec5932f36da4e35754b87236f2e69f0fab3100e61126929f26ded9435c617
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
|
3
3
|
_No changes yet._
|
4
4
|
|
5
|
+
## [0.5.4] - 2025-08-21
|
6
|
+
### Fixed
|
7
|
+
- Fix Rails engine configuration issue where `config.tosspayments2` was undefined
|
8
|
+
- Properly define config accessor in Rails application before using it
|
9
|
+
|
5
10
|
## [0.5.3] - 2025-08-21
|
6
11
|
### Fixed
|
7
12
|
- Complete fix for checkout.html.erb template with proper ERB syntax and error handling
|
@@ -6,7 +6,12 @@ module Tosspayments2
|
|
6
6
|
class Engine < ::Rails::Engine
|
7
7
|
isolate_namespace Tosspayments2::Rails
|
8
8
|
|
9
|
-
initializer 'tosspayments2.configure' do |app|
|
9
|
+
initializer 'tosspayments2.configure', before: :load_config_initializers do |app|
|
10
|
+
# Ensure config accessor exists
|
11
|
+
unless app.config.respond_to?(:tosspayments2)
|
12
|
+
app.config.class.send(:attr_accessor, :tosspayments2)
|
13
|
+
app.config.tosspayments2 = ActiveSupport::OrderedOptions.new
|
14
|
+
end
|
10
15
|
app.config.tosspayments2 ||= ActiveSupport::OrderedOptions.new
|
11
16
|
app_cfg = app.config.tosspayments2
|
12
17
|
::Tosspayments2::Rails.configure do |c|
|