standardapi 1.0.9 → 1.0.10
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3ef0a277d0306f9afa031a1bbbd80e7a36595b5
|
4
|
+
data.tar.gz: 89adcb13d289d2ef7b4b7027d9385c50f3555e9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b51fb68bea85b47d19549f567f5a3461de9d662633b973c93461f692ce660945d16cb6604dcf11b89db04bc1566c9a92269e477b494906c3f2ac96a6b42af1e9
|
7
|
+
data.tar.gz: 554e724a84890ca9dc5d0d0c21e481c217e4b9384cc67ef624bed671e984baf2fc89d24fa9b5079ba18aeaf66b7474ffdc94b3270259ec8deec05f67129f60f8
|
@@ -1,3 +1,9 @@
|
|
1
1
|
records = @records if !records
|
2
2
|
|
3
|
+
# partial = if lookup_context.exists?(association.klass.model_name.element, controller_name)
|
4
|
+
# association.klass.model_name.element
|
5
|
+
# else
|
6
|
+
# 'record'
|
7
|
+
# end
|
8
|
+
|
3
9
|
json.array! records, partial: 'application/record', as: :record, includes: includes
|
@@ -1,3 +1,9 @@
|
|
1
1
|
record = @record if !record
|
2
2
|
|
3
|
+
# partial = if lookup_context.exists?(association.klass.model_name.element, controller_name)
|
4
|
+
# association.klass.model_name.element
|
5
|
+
# else
|
6
|
+
# 'record'
|
7
|
+
# end
|
8
|
+
|
3
9
|
json.partial! 'application/record', record: record, includes: includes
|
data/lib/standard_api.rb
CHANGED
@@ -20,7 +20,7 @@ module StandardAPI
|
|
20
20
|
def self.included(klass)
|
21
21
|
klass.hide_action :current_mask
|
22
22
|
klass.helper_method :includes, :orders, :model
|
23
|
-
klass.
|
23
|
+
klass.append_view_path(File.join(File.dirname(__FILE__), 'standard_api', 'views'))
|
24
24
|
klass.extend(ClassMethods)
|
25
25
|
end
|
26
26
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standardapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Bracy
|
@@ -196,6 +196,7 @@ files:
|
|
196
196
|
- lib/standard_api/test_case/create_tests.rb
|
197
197
|
- lib/standard_api/test_case/destroy_tests.rb
|
198
198
|
- lib/standard_api/test_case/index_tests.rb
|
199
|
+
- lib/standard_api/test_case/schema_test.rb
|
199
200
|
- lib/standard_api/test_case/show_tests.rb
|
200
201
|
- lib/standard_api/test_case/update_tests.rb
|
201
202
|
- lib/standard_api/views/application/_record.json.jbuilder
|