active_scaffold 3.5.4 → 3.5.5

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
  SHA256:
3
- metadata.gz: e0a92ddd6c1b3401de801feb8488ec0e4a74d02eb91a7be59a9b28fe723c26f4
4
- data.tar.gz: 832e014bbebf915d82c126ef5d552cf8f241461ca780dced5ec9df59771ae711
3
+ metadata.gz: 55227fba8c77ac9fa4c3c93fb5b482cc92dd767d07f57611863a98f8e8488e54
4
+ data.tar.gz: ac8a1a22b165658cacb056d56bf3646ce94d93765059f1f113ad3bd68ee37997
5
5
  SHA512:
6
- metadata.gz: 597fc2f0187a6c59e0f52f7a9a187ef85810f716334ee32fd37c362a21201c7b39111c39f8a5b29e9f4b38eb9702991e1a269e05062442f5157a2a0a9de1a815
7
- data.tar.gz: dfad5b57b1bb177eaa1c8cc829a06fe85e1f4463605336fa5d67c1e3ad12c65cb285c15dbfcf2de04e9e0191c4fb172868dd2130f20a8a69b609fcf6790695d0
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
 
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 5
5
- PATCH = 4
5
+ PATCH = 5
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.4
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-01-23 00:00:00.000000000 Z
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.8
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