plutonium 0.15.0.pre.rc1 → 0.15.0.pre.rc2

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: e3a70117fde3ef4da4f1f2d5bbfd2b26feec7a45a6a288c5b6d685c465e1c6bb
4
- data.tar.gz: 67835b0050165b09302e0b70ad54b582af9d2131fba084c34faa08a0967a0dbf
3
+ metadata.gz: 973b65d5f7081a8498d5055f69c53b5e27c8f41a9e0d6755c869dddb2bf04d48
4
+ data.tar.gz: d2c991826f70157df405f6ab444120970900fa5ef3f70146df42df6245e67bf1
5
5
  SHA512:
6
- metadata.gz: a5bd53369f679c39678dfffee0558ff9f92ca8e9babff997ada447ea216ff1c3e2811f5200b3676cd889ebc8bfea94550b34066397038404c36d9b223b28d026
7
- data.tar.gz: ee31cc56e5653496e4092e41307d93c83a0e171ef99f9335b684272e2536175b512492578dcf9d66689bd51090eacbb816456794b762c6b3a94771cacca96e57
6
+ metadata.gz: 6a4b51ccc46d5f5de6a15bfc109ed4881b35be046061ee33af5ee61b5063bc335ee8438535a31747a2a8484e6041da0bfd92cafc046e9979a040ac13c3f63414
7
+ data.tar.gz: 03f47b395587697b3a4fde789614a98bfbdb83ecf575bb8a17b0a614e5d9d9e05a8d130ca989b5883b825009525a857a177b126e0cdb645050a140bdd99b366a
@@ -28,8 +28,8 @@ module Plutonium
28
28
  current_definition.detail_class.new(resource_record, resource_fields: presentable_attributes, resource_associations: permitted_associations, resource_definition: current_definition)
29
29
  end
30
30
 
31
- def build_form
32
- current_definition.form_class.new(resource_record, resource_fields: presentable_attributes, resource_definition: current_definition)
31
+ def build_form(record = resource_record)
32
+ current_definition.form_class.new(record, resource_fields: presentable_attributes, resource_definition: current_definition)
33
33
  end
34
34
 
35
35
  def present_associations?
@@ -1,5 +1,5 @@
1
1
  module Plutonium
2
- VERSION = "0.15.0-rc1"
2
+ VERSION = "0.15.0-rc2"
3
3
  NEXT_MAJOR_VERSION = VERSION.split(".").tap { |v|
4
4
  v[1] = v[1].to_i + 1
5
5
  v[2] = 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plutonium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0.pre.rc1
4
+ version: 0.15.0.pre.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Froelich