avo 2.30.1.pre3.pr1683 → 2.30.1.pre4.pr1683

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: 7c187f50748a67fd5efd131b79d1f9a3aac50e9fde37691e26e7a6af264001fe
4
- data.tar.gz: a1d21de053b77d80ed0ba618a043b94be172cf1ff47690f8a2a52d8fbed67e3e
3
+ metadata.gz: 7026eb5ccd2fa76aab49f686e6e3d87e310e54ed6d220aab367c87283690d29e
4
+ data.tar.gz: 3de5de591bb61c2d022eb71e25b08cceb225dc5af6f92ba2d4431abf594bbe45
5
5
  SHA512:
6
- metadata.gz: b68517f8dd8ea1865e07c68f8e890302ccfea22c752bd70fde7c1b16e9673d53acfcbc58c7bdeb8edf098177a404ba151b3fc3e2c6bdfaf304a5b0f92a391100
7
- data.tar.gz: d6e7c905a8b25d2cbc6e81edc68382db0613ca680985e8d3a478ac233e3eb67b993ed7575a6ab2393ffa41f66ab37b5ea80f351eb68a7395a84e08716db8ef15
6
+ metadata.gz: 005c54601761b2d69acea075c89a433c9a170d591db6e7d3cfdfd6b7cc75d36d87eee9eedec207aea59413c6ebc9efebed14896e5ed2a51eb46bfbd532a8c4e7
7
+ data.tar.gz: 89376982016bd362d2148cd57244fe9e8c3b5e998f081f3b34557e484a09e55c7d7370a22d2f7047bb418813c5edc7b7b124284a53a7eb58c59481183cb0229f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (2.30.1.pre3.pr1683)
4
+ avo (2.30.1.pre4.pr1683)
5
5
  actionview (>= 6.0)
6
6
  active_link_to
7
7
  activerecord (>= 6.0)
@@ -40,9 +40,7 @@ module Avo
40
40
  private
41
41
 
42
42
  def authorized_to(action)
43
- if @resource.authorization.authorize_action("#{action}_attachments?".to_sym, raise_exception: false)
44
- @resource.authorization.authorize_action("#{action}_#{params[:attachment_name]}?", record: @model, raise_exception: false)
45
- end
43
+ @resource.authorization.authorize_action("#{action}_#{params[:attachment_name]}?", record: @model, raise_exception: false)
46
44
  end
47
45
  end
48
46
  end
@@ -71,7 +71,7 @@ module Avo
71
71
  @id_links_to_resource = false
72
72
  @full_width_container = false
73
73
  @full_width_index_view = false
74
- @cache_resources_on_index_view = Avo::PACKED
74
+ @cache_resources_on_index_view = false
75
75
  @cache_resource_filters = false
76
76
  @context = proc {}
77
77
  @initial_breadcrumbs = proc {
@@ -23,7 +23,7 @@ module Avo
23
23
  private
24
24
 
25
25
  def authorize_file_action(action)
26
- authorize_action("#{action}_attachments?", raise_exception: false) || authorize_action("#{action}_#{id}?", record: model, raise_exception: false)
26
+ authorize_action("#{action}_#{id}?", record: model, raise_exception: false)
27
27
  end
28
28
  end
29
29
  end
data/lib/avo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Avo
2
- VERSION = "2.30.1.pre3.pr1683" unless const_defined?(:VERSION)
2
+ VERSION = "2.30.1.pre4.pr1683" unless const_defined?(:VERSION)
3
3
  end
@@ -47,7 +47,7 @@ Avo.configure do |config|
47
47
  # config.per_page_steps = [12, 24, 48, 72]
48
48
  # config.via_per_page = 8
49
49
  # config.id_links_to_resource = false
50
- # config.cache_resources_on_index_view = true
50
+ # config.cache_resources_on_index_view = false
51
51
  ## permanent enable or disable cache_resource_filters, default value is false
52
52
  # config.cache_resource_filters = false
53
53
  ## provide a lambda to enable or disable cache_resource_filters per user/resource.
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.30.1.pre3.pr1683
4
+ version: 2.30.1.pre4.pr1683
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-04-16 00:00:00.000000000 Z
12
+ date: 2023-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord