pragma-rails 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pragma/rails/resource_controller.rb +7 -5
- data/lib/pragma/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 460f0c75a8aa0c5cfb8618a7beb57de2fe031ebe
|
4
|
+
data.tar.gz: 5f5e542c5a5c81b83757a05f6ff59224c5a58913
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5c7eb2ce93a2f4b3333979860ceb61510143230a2db628fc4bfce50a945f1be173ff1a83728a4d77ffd0e57cb2d0ef3c5fc4babe5d8beb3073b62fe47b5379b
|
7
|
+
data.tar.gz: ee4816791903da9e9fc4eab2938ce4f22eb8f1c339c799e28885bacb684862865b83cf25bf10f6ce53d8675acc144d2f8e5035d0bfbc17b61a843a42c819e0e7
|
@@ -53,11 +53,13 @@ module Pragma
|
|
53
53
|
private
|
54
54
|
|
55
55
|
def class_exists?(klass)
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
56
|
+
begin
|
57
|
+
klass.constantize
|
58
|
+
rescue NameError => e
|
59
|
+
raise e unless e.message.include?("uninitialized constant #{klass}")
|
60
|
+
end
|
61
|
+
|
62
|
+
Object.const_defined?(klass)
|
61
63
|
end
|
62
64
|
end
|
63
65
|
|
data/lib/pragma/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pragma-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Desantis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pragma
|