Commit fd55675f by liyijie

feat: simple add ta_statistics template view

parent 1373a76e
...@@ -7,3 +7,5 @@ json.extract!( ...@@ -7,3 +7,5 @@ json.extract!(
<%- belongs_to_refs.each do |ref| -%> <%- belongs_to_refs.each do |ref| -%>
json.<%= ref.name.to_s %> <%= resource_singular %>.<%= ref.name.to_s %>, partial: '<%= File.join(ref.klass.name.underscore.pluralize, 'single') %>', as: :<%= ref.name %> json.<%= ref.name.to_s %> <%= resource_singular %>.<%= ref.name.to_s %>, partial: '<%= File.join(ref.klass.name.underscore.pluralize, 'single') %>', as: :<%= ref.name %>
<%- end -%> <%- end -%>
json.ta_statistics <%= resource_singular %>.ta_statistic(@resource_stat_condition) if @resource_stat_condition.present?
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment