graph_starter 0.15.3 → 0.15.4

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: 55d4551f61ea7baea2b02520a62943d8c4d70cd9
4
- data.tar.gz: 3f6bb8fc2e4413e47be167142d9041c12db32a69
3
+ metadata.gz: b801724a2f02fc313b568a889cb5d9bc9905de1e
4
+ data.tar.gz: 76b81c9e9b6d62a7af90f977273fb277f6cc06da
5
5
  SHA512:
6
- metadata.gz: 53fca6f9f9e7c21db16bde5ca59247a95dde87e35a0e327488d072ce9c73c9c1ab6360c054cfe79590559911dd33d647eee2c3cb98946be013e1f458197111ed
7
- data.tar.gz: a7070c24fb13c6115bbdc5cc116c2ff47f687a0dd15bcceb001cf5132590522280a2c7d240ca54258d4fd2df3e296049e85f33b0fa22fc8299824fdd7cfa7d48
6
+ metadata.gz: e17f64b1a7513d571626d569af3561226d388cb1ae353ef8bebd005c871da6a602002944653a3f0b76b4e4ead2fa57c6ac3c8c2772ed516ebd85c47df24b1226
7
+ data.tar.gz: 9886951448022c878ef36fd4df7be52a5c8df92c8d6ee66642ad6e7f88c49207de4a4298ca775097f68282dcbdb87683c79ea025dd38b49569513e0448aa9808
@@ -39,6 +39,13 @@ module GraphStarter
39
39
  end
40
40
 
41
41
  def show
42
+ # For cases where the route picked up more than it should have and we try to constantize something wrong
43
+ begin
44
+ model_class
45
+ rescue NameError
46
+ return render text: 'Not found', status: :not_found
47
+ end
48
+
42
49
  @asset = asset
43
50
 
44
51
  if @asset
@@ -1,3 +1,3 @@
1
1
  module GraphStarter
2
- VERSION = "0.15.3"
2
+ VERSION = "0.15.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graph_starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.3
4
+ version: 0.15.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Underwood
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-04 00:00:00.000000000 Z
11
+ date: 2015-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails