avo 3.31.1 → 3.31.2

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: 57c335ed9d52a1b8c5b03f4e98c4f382f039bf52967da11631b9032da4d87023
4
- data.tar.gz: 205f02863ada191a0e23148053e251e3dc83a1ca802b870cc85334ef7aa14bd4
3
+ metadata.gz: 8fd1eb7ca8df14cadac71e67767f5867d9570823f72da01f19015435e3ba0ce0
4
+ data.tar.gz: e7f2bbe6913a48f8cb786883d9c3f8b33320d9bb0c85b4ea227adc1cf61b5c2d
5
5
  SHA512:
6
- metadata.gz: 56856735cc4dcbea6c473b18019e740385cb7adea6a7c91569924d6b12ffe2b788ee239932fb254be625796dda9e75c36c5e48986401799a3069beac06b402b1
7
- data.tar.gz: 149e63fd9ea9623dc9059651071f318e742dd723fdca8f243b6c96a4b146da4d79c91baef0918ce41da156df9087c06a867e35ecd831d3c9018876f980d01c38
6
+ metadata.gz: 05c4f5d2c5c80e6c4c0b37c3e84bcbdf97fbda71f690af00691bacda3111a70996ee8937ecb0f19b26f0d2a2f9eb06d222ffbc21f9c49bd7ddd233202fe334e5
7
+ data.tar.gz: b7ea8e132799b11507a037bf3b934516d600063a5e875325aa30a6d5af479a73b940598721b9541e1e2193b1debaff617df6de208fe5b5bdb8ea8d27dfb872f6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (3.31.1)
4
+ avo (3.31.2)
5
5
  actionview (>= 6.1)
6
6
  active_link_to
7
7
  activerecord (>= 6.1)
@@ -115,9 +115,7 @@ module Avo
115
115
  def action_class
116
116
  @resource.hydrate(view: action_params[:resource_view].presence, user: _current_user, params: params)
117
117
 
118
- registered_action = @resource.get_actions.find do |action|
119
- action[:class].to_s == params[:action_id]
120
- end
118
+ registered_action = @resource.find_action(params[:action_id])
121
119
 
122
120
  if registered_action.nil?
123
121
  if Rails.env.development?
@@ -399,6 +399,14 @@ module Avo
399
399
  end
400
400
  end
401
401
 
402
+ def find_action(action_id)
403
+ actions = get_actions + Array(safe_call(:get_actions_from_custom_controls))
404
+
405
+ actions
406
+ .uniq { |action| action[:class].to_s }
407
+ .find { |action| action[:class].to_s == action_id.to_s }
408
+ end
409
+
402
410
  def hydrate(...)
403
411
  super
404
412
 
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "3.31.1" unless const_defined?(:VERSION)
2
+ VERSION = "3.31.2" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.31.1
4
+ version: 3.31.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
8
8
  - Mihai Marin
9
9
  - Paul Bob
10
+ autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 1980-01-02 00:00:00.000000000 Z
13
+ date: 2026-04-23 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: activerecord
@@ -1109,7 +1110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1109
1110
  - !ruby/object:Gem::Version
1110
1111
  version: '0'
1111
1112
  requirements: []
1112
- rubygems_version: 4.0.1
1113
+ rubygems_version: 3.5.22
1114
+ signing_key:
1113
1115
  specification_version: 4
1114
1116
  summary: Admin panel framework and Content Management System for Ruby on Rails.
1115
1117
  test_files: []