active_scaffold 3.5.1 → 3.5.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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: eb488c6caa26e0f29ed0a3f196978909c883a771c25d36210288b9a7f66f668c
|
4
|
+
data.tar.gz: 659fee5d9563399ed060d6bec5ad1328c9bcaa9f97fdd7fa738bcaa48c541f32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03028d9082279032c1798389025ab2c2f97f985c99b381e8cb85c65746a83b4cb5117a7f6d3c92ec86514ec10b0c3d772d2a2e2ebb80a00c1cd62e025772ea57
|
7
|
+
data.tar.gz: 6efab3ac33378af2dbb4a7509e3fdb698e791fcf7f655a498186a90d97334cc1a1a699ab766c3f449d53a83171d61edaac96b40d75a8dcff8fa7fc3c7720b564
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
= 3.5.2
|
2
|
+
- Load chosen on turbolinks:load event
|
3
|
+
- Fix association.blank? when associated_limit=0 and includes=nil
|
4
|
+
|
1
5
|
= 3.5.1
|
2
6
|
- Fix set false options for date picker
|
3
7
|
- Fix :hidden form_ui for singular associations
|
@@ -20,6 +24,7 @@
|
|
20
24
|
- add inline_links config to show action, display member links in show action loaded in page
|
21
25
|
- add :telephone list_ui displaying formatted phone number with tel: link
|
22
26
|
- add global config option to display reason for disabled action, authorized methods must return string with reason, and string is interpreted as not authorized
|
27
|
+
- add config.column shortcut to set defaults for column settings with ActiveScaffold.set_defaults
|
23
28
|
- stop saving embedded scaffolds info into session, so no more CookieOverflow errors caused by loading many embedded scaffolds
|
24
29
|
- add add_association_columns method to config.columns, so columns from has_one or belongs_to association can be added as delegated columns (for list, show, field_search and update_column only)
|
25
30
|
- support has_many through singular associations (belongs_to or has_one) in forms
|
data/README.md
CHANGED
@@ -253,7 +253,8 @@ module ActiveScaffold
|
|
253
253
|
# load at least one record more, is needed to display '...'
|
254
254
|
association.target = association.reader.limit(column.associated_limit + 1).select(column.select_associated_columns || "#{association.klass.quoted_table_name}.*").to_a
|
255
255
|
elsif @cache_associations
|
256
|
-
|
256
|
+
# set array with at least one element if size > 0, so blank? or present? works, saving [nil] may cause exceptions
|
257
|
+
association.target = size.to_i.zero? ? [] : [association.klass.new]
|
257
258
|
end
|
258
259
|
end
|
259
260
|
|
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.5.
|
4
|
+
version: 3.5.2
|
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: 2018-
|
11
|
+
date: 2018-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -424,7 +424,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
424
424
|
version: '0'
|
425
425
|
requirements: []
|
426
426
|
rubyforge_project:
|
427
|
-
rubygems_version: 2.
|
427
|
+
rubygems_version: 2.7.7
|
428
428
|
signing_key:
|
429
429
|
specification_version: 4
|
430
430
|
summary: Rails 4.x and 5.x versions of ActiveScaffold supporting prototype and jquery
|