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 +4 -4
- data/lib/plutonium/resource/controllers/presentable.rb +2 -2
- data/lib/plutonium/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 973b65d5f7081a8498d5055f69c53b5e27c8f41a9e0d6755c869dddb2bf04d48
|
4
|
+
data.tar.gz: d2c991826f70157df405f6ab444120970900fa5ef3f70146df42df6245e67bf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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?
|
data/lib/plutonium/version.rb
CHANGED