flexible_api_server 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/flexible_api_server/version.rb +1 -1
- data/views/doc_index.html.erb +4 -5
- metadata +3 -3
data/views/doc_index.html.erb
CHANGED
@@ -90,12 +90,11 @@
|
|
90
90
|
<% end %>
|
91
91
|
|
92
92
|
<% unless (associations = model.reflect_on_all_associations).empty? %>
|
93
|
-
|
93
|
+
<div class="associations">
|
94
94
|
<% associations.each do |assoc| %>
|
95
|
-
<%
|
96
|
-
<%
|
97
|
-
|
98
|
-
<% rescue NameError; next; end %>
|
95
|
+
<% begin; klass = assoc.klass; rescue NameError; next; end %>
|
96
|
+
<% next if klass.nil? || !FlexibleApi.flexible_models.include?(klass) %>
|
97
|
+
<% type = klass.name.pluralize.underscore.downcase %>
|
99
98
|
<div class="association">
|
100
99
|
<%= "/#{assoc.name}" %>
|
101
100
|
<% unless assoc.name.to_s == type %>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexible_api_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 9
|
10
|
+
version: 0.0.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- John Crepezzi
|