active_scaffold 3.5.0 → 3.5.1

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
  SHA1:
3
- metadata.gz: 0a7eb8fad2b071936f60422993e7edd163d60f7b
4
- data.tar.gz: b2ed33ac963964127a633ec19547874e350d1c9d
3
+ metadata.gz: 0c8cc03d3a0bb6557fd5872e5aaf1f030f1acd83
4
+ data.tar.gz: 804edfcee1562d8ce71060563e4f479b65389034
5
5
  SHA512:
6
- metadata.gz: 81f8a0cb3b77d49ed1771b02993a02a470a8bbf697d54c27e70649661148b461b4155c89533728305e738ca1dfe227470709590f46e63a76cd7a8280214f4a3c
7
- data.tar.gz: 3b6b906a0db4738963ff2bf63504928d2348cc42cbe1d9a3227b3d31d4deb7754fb64f5690b8da044fb408514cac196fb41d6fae93d94f144057126fccf55190
6
+ metadata.gz: e255d20434b2d9969fb560f22e5deebf2fb37c3ae64aece86e99f60527115c9df1d29e8dda4396213265914ea367a8c84a32bab7410f6ca0907e85d0475a083c
7
+ data.tar.gz: 405ab410fcd7f6b9d1c1fa4c0a91357f8d5b7a6ccef1d7be2cfa4ac8399fcd96dd07795ae9ae92d6b7ceee98398ae52a9ffd7d86bc70501a0486d9286f96d685
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ = 3.5.1
2
+ - Fix set false options for date picker
3
+ - Fix :hidden form_ui for singular associations
4
+ - Fix sorting by columns not included in list for SQL Server
5
+
1
6
  = 3.5.0
2
7
  - add basic support for Mongoid
3
8
  - add support for associations between Mongoid and ActiveRecord with ActiveMongoid
@@ -7,7 +7,7 @@ jQuery.extend(Object.getPrototypeOf(jQuery.datepicker), {
7
7
  for (var attrName in this._defaults) {
8
8
  if(this._defaults.hasOwnProperty(attrName)){
9
9
  var attrValue = $target.data(attrName.toLowerCase());
10
- if (attrValue) {
10
+ if (attrValue !== undefined) {
11
11
  try {
12
12
  inlineSettings[attrName] = eval(attrValue);
13
13
  } catch (err) {
@@ -30,6 +30,9 @@ module ActiveScaffold
30
30
  if defined?(PostgreSQLAdapter)
31
31
  PostgreSQLAdapter.send :include, ActiveScaffold::ConnectionAdapters::PostgreSQLAdapter
32
32
  end
33
+ if defined?(SQLServerAdapter)
34
+ SQLServerAdapter.send :include, ActiveScaffold::ConnectionAdapters::SQLServerAdapter
35
+ end
33
36
  end
34
37
  end
35
38
  end
@@ -11,5 +11,11 @@ module ActiveScaffold
11
11
  true
12
12
  end
13
13
  end
14
+
15
+ module SQLServerAdapter
16
+ def needs_order_expressions_in_select?
17
+ true
18
+ end
19
+ end
14
20
  end
15
21
  end
@@ -216,6 +216,8 @@ module ActiveScaffold
216
216
  end
217
217
  safe_join fields, ''
218
218
  end
219
+ elsif column.association
220
+ hidden_field_tag options[:name], record.send(column.name).try(:id), options
219
221
  else
220
222
  hidden_field :record, column.name, options.merge(object: record)
221
223
  end
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 5
5
- PATCH = 0
5
+ PATCH = 1
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.0
4
+ version: 3.5.1
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-03-23 00:00:00.000000000 Z
11
+ date: 2018-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails