avo 2.32.2 → 2.32.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of avo might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a87cb9ad28dd06e0aa9f183fc1d610f9ebd655108cd9d5053f5f7e6d0c6c2bd
4
- data.tar.gz: a983e0f6d719b3e4b61efdfb1bf1e3d74e5fe7e77eed8b30b78ec946136786d9
3
+ metadata.gz: 4d337922f3d015b07ee31573c8ca5f5e9f502d18869fcd3060421eadcd5bbc40
4
+ data.tar.gz: e6d5bc826b7a5d440a777a52c7b6f7f80962c2d9ec3d8dad9c2d6805ec2cffb4
5
5
  SHA512:
6
- metadata.gz: be5ad5ccf47de78f21816ed76abb8ee632d4940823b0132b90c38fe2aba6bfcc1cd824b42963c213ea3a6f447b10f17995215b0b4317faa5021c79637db56f87
7
- data.tar.gz: f3a9103c23935739865dfe6e25e5cb388240243eb74cd18f6b6cf858e4bc68fd22672d5d2c517787ff7fe154d454e45a10a0e5c901600d1c311d0310c3d93aa2
6
+ metadata.gz: 5c812e4de2ddc2c35b4ed53d4b2f88a5716853d9b231e996ccebcba0d6c897dd8934074b496948fbb312d8d07339d167a4e645573a95336aee214f965885189f
7
+ data.tar.gz: b5644e6aae542712ab75d39745f6fa21b2aab41f50450720a41fc4d06a30b25baf9bbe3968c1b885f3cc591824b325a24350b57274f502a0558c50dbe6eea014
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.32.2)
4
+ avo (2.32.3)
5
5
  actionview (>= 6.0)
6
6
  active_link_to
7
7
  activerecord (>= 6.0)
@@ -66,7 +66,7 @@
66
66
  <% end %>
67
67
  <% end %>
68
68
  <% c.with_bare_content do %>
69
- <% if view_type.to_sym == :table %>
69
+ <% if view_type.to_sym == :table || view_type.to_sym == :map %>
70
70
  <% if @models.present? %>
71
71
  <div class="mt-4">
72
72
  <%= render Avo::PaginatorComponent.new pagy: @pagy, turbo_frame: @turbo_frame || 'none', index_params: @index_params, resource: @resource, parent_model: @parent_model, discreet_pagination: field&.discreet_pagination %>
data/lib/avo/app.rb CHANGED
@@ -49,7 +49,7 @@ module Avo
49
49
  elsif Rails.env.test?
50
50
  Rails.cache
51
51
  else
52
- ActiveSupport::Cache::MemoryStore.new
52
+ ActiveSupport::Cache.lookup_store(:memory_store)
53
53
  end
54
54
  end
55
55
 
@@ -15,7 +15,7 @@ module Avo
15
15
 
16
16
  # Returns the Avo dashboard by name
17
17
  #
18
- # get_dashboard_by_name(:dashy) -> Dashy
18
+ # get_dashboard_by_name(:dashy) -> instance of Dashy
19
19
  def get_dashboard_by_name(name)
20
20
  dashboards.find do |dashboard|
21
21
  dashboard.name == name
@@ -29,7 +29,7 @@ module Avo
29
29
 
30
30
  # Returns the Avo resource by camelized name
31
31
  #
32
- # get_resource_by_name('User') => UserResource
32
+ # get_resource_by_name('User') => instance of UserResource
33
33
  def get_resource(resource)
34
34
  possible_resource = "#{resource}Resource".gsub "ResourceResource", "Resource"
35
35
 
@@ -40,7 +40,7 @@ module Avo
40
40
 
41
41
  # Returns the Avo resource by singular snake_cased name
42
42
  #
43
- # get_resource_by_name('user') => UserResource
43
+ # get_resource_by_name('user') => instance of UserResource
44
44
  def get_resource_by_name(name)
45
45
  get_resource name.singularize.camelize
46
46
  end
@@ -48,8 +48,8 @@ module Avo
48
48
  # Returns the Avo resource by singular snake_cased name
49
49
  # From all the resources that use the same model_class, it will fetch the first one in alphabetical order
50
50
  #
51
- # get_resource_by_name('User') => UserResource
52
- # get_resource_by_name(User) => UserResource
51
+ # get_resource_by_name('User') => instance of UserResource
52
+ # get_resource_by_name(User) => instance of UserResource
53
53
 
54
54
  def get_resource_by_model_name(klass)
55
55
  # Fetch the mappings imposed by the user.
@@ -65,8 +65,8 @@ module Avo
65
65
 
66
66
  # Returns the Avo resource by singular snake_cased name
67
67
  #
68
- # get_resource_by_controller_name('delayed_backend_active_record_jobs') => DelayedJobResource
69
- # get_resource_by_controller_name('users') => UserResource
68
+ # get_resource_by_controller_name('delayed_backend_active_record_jobs') => instance of DelayedJobResource
69
+ # get_resource_by_controller_name('users') => instance of UserResource
70
70
  def get_resource_by_controller_name(name)
71
71
  valid_resources
72
72
  .find do |resource|
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.32.2" unless const_defined?(:VERSION)
2
+ VERSION = "2.32.3" unless const_defined?(:VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.32.2
4
+ version: 2.32.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrian Marin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-05-09 00:00:00.000000000 Z
12
+ date: 2023-05-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord