rails-domino 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7671c3d22a75e76e5d81c86c4e45b126a11852c91ca6c266f499a871fdf8e4bd
4
- data.tar.gz: 26e59bd16554e7ada67d983ba97e8ef47ee434679d0f5b288bbddf7fd4c21858
3
+ metadata.gz: 9ab700c7a87cc466098e23a761682aa3ed9457ae38ed82698f6c3e36abf92cef
4
+ data.tar.gz: 6e8a78dc4a28bbf5f4522bc93984c25f7bc1d8abf4c30c6bdcbf2b9c258150d8
5
5
  SHA512:
6
- metadata.gz: cc65fb2a689d4ce47745840f34c04f6f3dcc1951e048a90284bdc0dfdbbf2b13ac88ad2429e70ad1f3ab27da71799bee5ee113e94eacc897f59fed65ab1c2d75
7
- data.tar.gz: ec68e0c0720bb92480508fef78017de28d3236c6a198504993e526ca71ab37e610e3b379d07cfea6acf0f59d059aa7afaf017800b1e5d097de4b80649d7bb3ce
6
+ metadata.gz: cfc78b6ed88d299313b66be050d69dc2512bc8a58468e0ee14a3ab5a5c28fb44fe218da0345eb0d123a17d3eec282e9fb847c65967f3a6202f8cfd7cba7c684e
7
+ data.tar.gz: 813c89cb11f1e4c89721176b4db0298f3176ebb92fc599afa0714cf726e162dee00183e30e07eecc014b70b57d5359a8ba9268f001636120c41952b37e19d37a
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Domino
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
@@ -12,7 +12,12 @@ class <%= @model_name.pluralize %>Controller < ApplicationController
12
12
  # GET /<%= @plural_file_name %>/:id
13
13
  # @return [JSON]
14
14
  def show
15
- render json: <%= @model_name %>Blueprint.render(<%= @model_name.underscore %>_service.get(params[:id]))
15
+ record = <%= @file_name %>_service.get(params[:id])
16
+ if record.nil?
17
+ head :not_found
18
+ else
19
+ render json: <%= @model_name %>Blueprint.render(record)
20
+ end
16
21
  end
17
22
 
18
23
  # POST /<%= @plural_file_name %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-domino
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kiebor81