jbuilder-schema 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/jbuilder/schema/renderer.rb +2 -1
- data/lib/jbuilder/schema/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: a69e9ffd441f2e46592aa2e7a533157e8ce1d166a72d331176e98d577311b66c
|
4
|
+
data.tar.gz: e0162e1fee77c8288006683f883b2d1b7340781fd3c509f2f24a893de69b1db7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96dbb87d9ddb9884726787caf2de42d0038c5e55b5b5c1b31859b0b7fa9cc4412e514a9fb4e658126ece93d2f6dfdc9532be6ce6a5b14bdd57148cb74e74951c
|
7
|
+
data.tar.gz: 856dd6cd617cc5739960d7afb29184e3a34c84b50b761d1620e1df24d57bc147dd69bfbfd1a8533ae0aa52e05fbf101e4fce810080cdde8a1690fcaccdb7815e
|
data/Gemfile.lock
CHANGED
@@ -18,7 +18,8 @@ class Jbuilder::Schema::Renderer
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def render(object = nil, title: nil, description: nil, assigns: nil, **options)
|
21
|
-
|
21
|
+
partial_path = object.respond_to?(:to_partial_path_for_jbuilder_schema) ? object.to_partial_path_for_jbuilder_schema : object.to_partial_path
|
22
|
+
options.merge! partial: partial_path, object: object if object
|
22
23
|
|
23
24
|
options[:locals] ||= {}
|
24
25
|
options[:locals].merge! @default_locals if @default_locals
|
@@ -1,4 +1,4 @@
|
|
1
1
|
# We can't use the standard `Jbuilder::Schema::VERSION =` because
|
2
2
|
# `Jbuilder` isn't a regular module namespace, but a class …which also loads Active Support.
|
3
3
|
# So we use trickery, and assign the proper version once `jbuilder/schema.rb` is loaded.
|
4
|
-
JBUILDER_SCHEMA_VERSION = "2.0.
|
4
|
+
JBUILDER_SCHEMA_VERSION = "2.0.1"
|