massimo 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/massimo/resource/base.rb +1 -0
- data/lib/massimo/site.rb +1 -3
- data/massimo.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.6
|
data/lib/massimo/site.rb
CHANGED
@@ -125,9 +125,7 @@ module Massimo
|
|
125
125
|
class_name = File.basename(file).gsub(File.extname(file), "").classify
|
126
126
|
Object.class_eval { remove_const(class_name) if const_defined?(class_name) }
|
127
127
|
load(file)
|
128
|
-
|
129
|
-
Massimo.resources.delete(class_constant)
|
130
|
-
class_constant
|
128
|
+
class_name.constantize rescue nil
|
131
129
|
end
|
132
130
|
end
|
133
131
|
end
|
data/massimo.gemspec
CHANGED