active_scaffold 3.5.1 → 3.5.2

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
- SHA1:
3
- metadata.gz: 0c8cc03d3a0bb6557fd5872e5aaf1f030f1acd83
4
- data.tar.gz: 804edfcee1562d8ce71060563e4f479b65389034
2
+ SHA256:
3
+ metadata.gz: eb488c6caa26e0f29ed0a3f196978909c883a771c25d36210288b9a7f66f668c
4
+ data.tar.gz: 659fee5d9563399ed060d6bec5ad1328c9bcaa9f97fdd7fa738bcaa48c541f32
5
5
  SHA512:
6
- metadata.gz: e255d20434b2d9969fb560f22e5deebf2fb37c3ae64aece86e99f60527115c9df1d29e8dda4396213265914ea367a8c84a32bab7410f6ca0907e85d0475a083c
7
- data.tar.gz: 405ab410fcd7f6b9d1c1fa4c0a91357f8d5b7a6ccef1d7be2cfa4ac8399fcd96dd07795ae9ae92d6b7ceee98398ae52a9ffd7d86bc70501a0486d9286f96d685
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
@@ -24,6 +24,10 @@ Added to Gemfile
24
24
 
25
25
  gem 'active_scaffold'
26
26
 
27
+ For rails >= 5.1, add
28
+
29
+ gem 'jquery-rails'
30
+
27
31
  Run the following commands
28
32
 
29
33
  bundle install
@@ -8,4 +8,7 @@ jQuery(document).ready(function() {
8
8
  }
9
9
  });
10
10
  jQuery('select.chosen').chosen();
11
+ jQuery(document).on('turbolinks:load', function($) {
12
+ jQuery('select.chosen').chosen();
13
+ });
11
14
  });
@@ -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
- association.target = []
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
 
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 5
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  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.5.1
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-05-16 00:00:00.000000000 Z
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.6.10
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