jbuilder-schema 2.0.2 → 2.0.3
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 +4 -2
- data/lib/jbuilder/schema/version.rb +1 -1
- data/lib/jbuilder/schema.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: 991bddd670414a1f167fc83b2114d27337ab2e5df0b1e6355e86cbfe832521c2
|
4
|
+
data.tar.gz: ae052082eee4397d31eff6765676efe8961a0e9cccc76dd4ff468352281f27ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68f345ca2156440ec1e98f89a9322cf92f5450006b51e61b17d7437721fbc542985142f4fd223d8cc805bed1e6b4b2d2c2bd96197b1805155a6a9af04f0f59cd
|
7
|
+
data.tar.gz: 64d6feefab876b7446e4523d739b9c9be65fd88e42eec35bcbab54f417f5ff6966c6c7a898c06d506e301a26ba3e474e5282275a2f5af575dcba64f8e4032366
|
data/Gemfile.lock
CHANGED
@@ -18,8 +18,10 @@ class Jbuilder::Schema::Renderer
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def render(object = nil, title: nil, description: nil, assigns: nil, **options)
|
21
|
-
|
22
|
-
|
21
|
+
if object
|
22
|
+
partial_path = object.respond_to?(:to_partial_path_for_jbuilder_schema) ? object.to_partial_path_for_jbuilder_schema : object.to_partial_path
|
23
|
+
options.merge! partial: partial_path, object: object
|
24
|
+
end
|
23
25
|
|
24
26
|
options[:locals] ||= {}
|
25
27
|
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.3"
|
data/lib/jbuilder/schema.rb
CHANGED
@@ -4,7 +4,7 @@ require "active_support/core_ext/module/delegation"
|
|
4
4
|
require "jbuilder/schema/version"
|
5
5
|
|
6
6
|
class Jbuilder::Schema
|
7
|
-
VERSION = "2.0.
|
7
|
+
VERSION = "2.0.3" # TODO Fix this. It's throwing errors when including the Ruby gem in downstream projects.
|
8
8
|
|
9
9
|
module IgnoreSchemaMeta
|
10
10
|
::Jbuilder.prepend self
|