active_scaffold 3.6.1 → 3.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +6 -0
- data/README.md +1 -1
- data/lib/active_scaffold/actions/list.rb +1 -1
- data/lib/active_scaffold/config/list.rb +1 -1
- data/lib/active_scaffold/data_structures/action_columns.rb +1 -1
- data/lib/active_scaffold/extensions/cow_proxy.rb +0 -4
- data/lib/active_scaffold/version.rb +1 -1
- data/test/data_structures/action_columns_test.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d35f441c2847444fd7e591e529085d3613774e19b0dc2b87a6a7e046e39eb95a
|
4
|
+
data.tar.gz: 5028894d44f4ed52a7e3cf7f4f92d38d86c48221815ccbb2f28396ecbda447ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d92dc0e4e6933a0849269191d4b273083e6914606a3198ccd132754f1ef4607434d7ef5cf6e51268aa34c7c926613f75214aa5b1ac961a0784ca5b8a34133c3
|
7
|
+
data.tar.gz: b87a086b26a98a148a485fe9af2c55e483dbbb82a1ccc4231d7e468a4f5265022bef3899e05ae6e6af1fef63295456f43f2456ba17043f42e42a7a796bcdffde
|
data/CHANGELOG.rdoc
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
= 3.6.2
|
2
|
+
- Fix count query when association's primary key is string
|
3
|
+
- Fix unauthorized_columns and constraint_columns with threadsafe enabled
|
4
|
+
- Fix changing list.sorting and column.sort_by per request when threadsafe is enabled
|
5
|
+
|
6
|
+
= 3.6.1
|
1
7
|
- Display group cols vertically when subform layout is vertical
|
2
8
|
- Fix html attributes for input datetime on field search, when jquery ui is not used
|
3
9
|
- Fix constraint columns for nested list on through assocaitions
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ Overview
|
|
9
9
|
[![Inline docs](https://inch-ci.org/github/activescaffold/active_scaffold.svg?branch=master)](https://inch-ci.org/github/activescaffold/active_scaffold)
|
10
10
|
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
|
11
11
|
|
12
|
-
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.2.0 and Rails
|
12
|
+
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.2.0 and Rails <= 6.1 is supported, ruby >= 2.3 required.
|
13
13
|
|
14
14
|
Branch Details
|
15
15
|
--------------
|
@@ -161,7 +161,7 @@ module ActiveScaffold::Actions
|
|
161
161
|
|
162
162
|
def count_query_on_association_class(column)
|
163
163
|
key = column.association.primary_key || :id
|
164
|
-
query = column.association.klass.where(column.association.foreign_key => @records.map(&key))
|
164
|
+
query = column.association.klass.where(column.association.foreign_key => @records.map(&key.to_sym))
|
165
165
|
if column.association.as
|
166
166
|
query.where!(column.association.reverse_association.foreign_type => active_scaffold_config.model.name)
|
167
167
|
end
|
@@ -292,7 +292,7 @@ module ActiveScaffold::Config
|
|
292
292
|
@_sorting = sorting
|
293
293
|
else
|
294
294
|
@_sorting = default_sorting
|
295
|
-
@_sorting.set(
|
295
|
+
@_sorting.set(*@sorting) if @sorting
|
296
296
|
if @conf.columns.constraint_columns.present?
|
297
297
|
@_sorting.constraint_columns = @conf.columns.constraint_columns
|
298
298
|
end
|
@@ -5,7 +5,7 @@ require 'test_helper'
|
|
5
5
|
class ActionColumnsTest < MiniTest::Test
|
6
6
|
def setup
|
7
7
|
@columns = ActiveScaffold::DataStructures::ActionColumns.new(%i[a b])
|
8
|
-
@columns.action = stub(:
|
8
|
+
@columns.action = stub(core: stub(model_id: 'model_stub'), user_settings_key: :"model_stub_active_scaffold/config/test")
|
9
9
|
end
|
10
10
|
|
11
11
|
def test_label
|
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.6.
|
4
|
+
version: 3.6.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: 2021-
|
11
|
+
date: 2021-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|