active_scaffold 3.5.2 → 3.5.3

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
2
  SHA256:
3
- metadata.gz: eb488c6caa26e0f29ed0a3f196978909c883a771c25d36210288b9a7f66f668c
4
- data.tar.gz: 659fee5d9563399ed060d6bec5ad1328c9bcaa9f97fdd7fa738bcaa48c541f32
3
+ metadata.gz: 177c474fcde86642099ba380b09ad4b3042a09c8e29b0ab400190628b426e92e
4
+ data.tar.gz: f38ba6290d4887a33d376bf03ba5ba0ea0e9fe19488e783543be999948614646
5
5
  SHA512:
6
- metadata.gz: 03028d9082279032c1798389025ab2c2f97f985c99b381e8cb85c65746a83b4cb5117a7f6d3c92ec86514ec10b0c3d772d2a2e2ebb80a00c1cd62e025772ea57
7
- data.tar.gz: 6efab3ac33378af2dbb4a7509e3fdb698e791fcf7f655a498186a90d97334cc1a1a699ab766c3f449d53a83171d61edaac96b40d75a8dcff8fa7fc3c7720b564
6
+ metadata.gz: 5592eef658ad06e1a564d085c2db7501057cf49b3782c9e7da7d13a18d375ae7e812a3e400b3fc14cf6ddb15703bce206e7da9c81a397b8035eed2d3cc470c46
7
+ data.tar.gz: 54d1fdd3df68b78ad89595e0350d04a91b75b79d203ed478c4b638136b108d2d39834dabbd64971609641de621011cb761d8bafd3a22fbab3327cd880252b7ff
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ - Fix :text fields for rails >= 5.1
2
+ - Send empty array in collection associations with select form_ui (checkbox or draggable list) when no option is available
3
+
1
4
  = 3.5.2
2
5
  - Load chosen on turbolinks:load event
3
6
  - Fix association.blank? when associated_limit=0 and includes=nil
data/README.md CHANGED
@@ -8,7 +8,7 @@ Overview
8
8
  [![Inline docs](https://inch-ci.org/github/activescaffold/active_scaffold.svg?branch=master)](https://inch-ci.org/github/activescaffold/active_scaffold)
9
9
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
10
10
 
11
- ActiveScaffold provides a quick and powerful user interfaces for CRUD (create, read, update, delete) operations for Rails applications. It offers additonal features including searching, pagination & layout control. Rails >= 4.0.5 is supported, ruby >= 2.1 supported, although it should work with ruby >= 2.0.0, it's too old and not tested. Ruby < 2.0.0 won't work.
11
+ ActiveScaffold provides a quick and powerful user interfaces for CRUD (create, read, update, delete) operations for Rails applications. It offers additonal features including searching, pagination & layout control. Rails >= 4.0.5 and < 5.2 is supported, ruby >= 2.1 supported, although it should work with ruby >= 2.0.0, it's too old and not tested. Ruby < 2.0.0 won't work.
12
12
 
13
13
  Branch Details
14
14
  --------------
@@ -323,7 +323,7 @@ module ActiveScaffold
323
323
  column.type_cast_from_database(column.default)
324
324
  else
325
325
  column_type = ActiveScaffold::OrmChecks.column_type(klass, column_name)
326
- cast_type = ActiveModel::Type.lookup column_type
326
+ cast_type = ActiveRecord::Type.lookup column_type
327
327
  cast_type ? cast_type.deserialize(column.default) : column.default
328
328
  end
329
329
  end
@@ -237,7 +237,7 @@ module ActiveScaffold
237
237
  elsif column.type.respond_to? :cast # jruby-jdbc and rails 5
238
238
  column.type.cast value
239
239
  else
240
- cast_type = ActiveModel::Type.lookup column.type
240
+ cast_type = ActiveRecord::Type.lookup column.type
241
241
  cast_type ? cast_type.cast(value) : value
242
242
  end
243
243
  end
@@ -363,7 +363,8 @@ module ActiveScaffold
363
363
 
364
364
  html =
365
365
  if select_options.empty?
366
- content_tag(:span, as_(:no_options), :class => "#{options[:class]} no-options", :id => options[:id])
366
+ content_tag(:span, as_(:no_options), :class => "#{options[:class]} no-options", :id => options[:id]) <<
367
+ hidden_field_tag("#{options[:name]}[]", '', :id => nil)
367
368
  else
368
369
  active_scaffold_checkbox_list(column, select_options, associated_options.collect(&:id), options)
369
370
  end
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 5
5
- PATCH = 2
5
+ PATCH = 3
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.2
4
+ version: 3.5.3
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-07-31 00:00:00.000000000 Z
11
+ date: 2018-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.0.5
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 5.2.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: 4.0.5
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 5.2.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: ice_nine
29
35
  requirement: !ruby/object:Gem::Requirement