null_and_void 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ module NullAndVoid
|
|
10
10
|
null_object_base = "Null#{base_path}"
|
11
11
|
source_model_path = "#{module_path}::#{null_object_base}"
|
12
12
|
|
13
|
-
ActiveSupport::Inflector.constantize(source_model_path).
|
13
|
+
ActiveSupport::Inflector.constantize(source_model_path).instance
|
14
14
|
rescue NameError
|
15
15
|
NullAndVoid::NullObject.instance
|
16
16
|
end
|
data/spec/model_support_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: null_and_void
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|