active_scaffold 3.7.3.1 → 3.7.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9206609200e1c9330a6e04b1731300dad5fcba8a52c70ae26ef6ba6427da4c25
|
4
|
+
data.tar.gz: 0b501f82598b99ff587b1fa484d017a73f1fd018b5a26a7968c065d0152ae74b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08c1c4a3b4dad7c731793ebecd4e238a36ee49e340964c8321a88b562fafbf0b12d7992501c5ffad8efa60820a40e80879f0c9e60715cc1da2e31a5c764781bc'
|
7
|
+
data.tar.gz: 310c5bf214800a98efd1d7af45b771608ce85cdf27db3df8437a0ea9cbabb243f2df8d8ee3603c81a9e43a76ba09dcaae20df26aa3a1b0df9bf0b18f2c244bab
|
data/CHANGELOG.rdoc
CHANGED
@@ -3,18 +3,20 @@
|
|
3
3
|
when :jquery
|
4
4
|
require_asset "getprototypeof"
|
5
5
|
require_asset "jquery.ba-throttle-debounce"
|
6
|
-
if
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
6
|
+
if Object.const_defined?('Jquery')
|
7
|
+
if Jquery.const_defined?('Rails') && Jquery::Rails.const_defined?('JQUERY_UI_VERSION')
|
8
|
+
require_asset "jquery-ui"
|
9
|
+
elsif Jquery.const_defined? 'Ui'
|
10
|
+
jquery_ui_prefix = Jquery::Ui::Rails::VERSION < '5.0.0' ? 'jquery.ui.' : 'jquery-ui/'
|
11
|
+
jquery_ui_widgets_prefix = Jquery::Ui::Rails::VERSION >= '6.0.0' ? 'widgets/' : ''
|
12
|
+
require_asset "#{jquery_ui_prefix}core"
|
13
|
+
require_asset "#{jquery_ui_prefix}effect"
|
14
|
+
require_asset "#{jquery_ui_prefix}effects/effect-highlight" if Jquery::Ui::Rails::VERSION >= '6.0.0'
|
15
|
+
require_asset "#{jquery_ui_prefix}#{jquery_ui_widgets_prefix}sortable"
|
16
|
+
require_asset "#{jquery_ui_prefix}#{jquery_ui_widgets_prefix}draggable"
|
17
|
+
require_asset "#{jquery_ui_prefix}#{jquery_ui_widgets_prefix}droppable"
|
18
|
+
require_asset "#{jquery_ui_prefix}#{jquery_ui_widgets_prefix}datepicker"
|
19
|
+
end
|
18
20
|
end
|
19
21
|
if ActiveScaffold.jquery_ui_included?
|
20
22
|
require_asset "jquery-ui-timepicker-addon"
|
@@ -1,10 +1,12 @@
|
|
1
|
-
<% if
|
2
|
-
<%
|
3
|
-
<%
|
4
|
-
<%
|
5
|
-
<%
|
6
|
-
|
7
|
-
<%
|
1
|
+
<% if Object.const_defined?('Jquery') %>
|
2
|
+
<% if Jquery.const_defined?('Rails') && Jquery::Rails.const_defined?('JQUERY_UI_VERSION') %>
|
3
|
+
<% require_asset "jquery-ui" %>
|
4
|
+
<% elsif Jquery.const_defined? 'Ui' %>
|
5
|
+
<% if Jquery::Ui::Rails::VERSION < '5.0.0' %>
|
6
|
+
<% require_asset "jquery.ui.datepicker" %>
|
7
|
+
<% else %>
|
8
|
+
<% require_asset "jquery-ui/datepicker" %>
|
9
|
+
<% end %>
|
8
10
|
<% end %>
|
9
11
|
<% end %>
|
10
12
|
<% require_asset "jquery-ui-theme" if ActiveScaffold.jquery_ui_included? %>
|
@@ -146,7 +146,7 @@ module ActiveScaffold
|
|
146
146
|
conditions.concat options[:conditions][1..-1] if options[:conditions]
|
147
147
|
if column.association&.polymorphic?
|
148
148
|
conditions[0] << " AND #{column.quoted_foreign_type} = ?"
|
149
|
-
conditions << relation.
|
149
|
+
conditions << relation.base_class.sti_name
|
150
150
|
end
|
151
151
|
conditions
|
152
152
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Many, see README
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|