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 +4 -4
- data/CHANGELOG +5 -0
- data/app/assets/javascripts/jquery/date_picker_bridge.js.erb +1 -1
- data/lib/active_scaffold/engine.rb +3 -0
- data/lib/active_scaffold/extensions/connection_adapter.rb +6 -0
- data/lib/active_scaffold/helpers/form_column_helpers.rb +2 -0
- data/lib/active_scaffold/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c8cc03d3a0bb6557fd5872e5aaf1f030f1acd83
|
4
|
+
data.tar.gz: 804edfcee1562d8ce71060563e4f479b65389034
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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
|
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.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-
|
11
|
+
date: 2018-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|