active_scaffold 3.5.4 → 3.5.5
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 +4 -4
- data/CHANGELOG +3 -0
- data/lib/active_scaffold/bridges/cancan/cancan_bridge.rb +6 -0
- data/lib/active_scaffold/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55227fba8c77ac9fa4c3c93fb5b482cc92dd767d07f57611863a98f8e8488e54
|
4
|
+
data.tar.gz: ac8a1a22b165658cacb056d56bf3646ce94d93765059f1f113ad3bd68ee37997
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49048946d6223c2f8d15ff44d990856ca3c4bb24660abf45170ecd66f0a4f95687f94e0a13f393914d08d4220556da7ff598210a8570dfd70840e68f325e8793
|
7
|
+
data.tar.gz: 91ebe94b8625eae16f22dc705e14fbfaf58723845ba1f3264a89ebfa30d6cc4eb121203d659e226f55d6747c8812318c59ba535629beb3f9c6cafcc896f7b38a
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
= 3.5.5
|
2
|
+
- Fix creating new records, when using cancan and allowing access based on id (fixes #617)
|
3
|
+
|
1
4
|
= 3.5.4
|
2
5
|
- Fix chosen form_ui for plural associations
|
3
6
|
- Eager load with includes in association options query, if includes has a hash with own association key, see #612
|
@@ -45,6 +45,12 @@ module ActiveScaffold::Bridges
|
|
45
45
|
def beginning_of_chain
|
46
46
|
super.accessible_by(current_ability)
|
47
47
|
end
|
48
|
+
|
49
|
+
# fix when ability allow access base on id
|
50
|
+
# can [:manage], Client, id: Client.of_employee(user).pluck(:id)
|
51
|
+
def new_model
|
52
|
+
super.tap { |record| record.id = nil }
|
53
|
+
end
|
48
54
|
end
|
49
55
|
end
|
50
56
|
|
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.5
|
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: 2019-
|
11
|
+
date: 2019-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -430,7 +430,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
430
430
|
version: '0'
|
431
431
|
requirements: []
|
432
432
|
rubyforge_project:
|
433
|
-
rubygems_version: 2.7.
|
433
|
+
rubygems_version: 2.7.9
|
434
434
|
signing_key:
|
435
435
|
specification_version: 4
|
436
436
|
summary: Rails 4.x and 5.x versions of ActiveScaffold supporting prototype and jquery
|