lib/oxidized/config/vars.rb in oxidized-0.19.0 vs lib/oxidized/config/vars.rb in oxidized-0.20.0

- old
+ new

@@ -6,10 +6,14 @@ if Oxidized.config.groups.has_key?(@node.group) if Oxidized.config.groups[@node.group].vars.has_key?(name.to_s) r ||= Oxidized.config.groups[@node.group].vars[name.to_s] end end + if Oxidized.config.models.has_key?(@node.model.class.name.to_s.downcase) + if Oxidized.config.models[@node.model.class.name.to_s.downcase].vars.has_key?(name.to_s) + r ||= Oxidized.config.models[@node.model.class.name.to_s.downcase].vars[name.to_s] + end + end r ||= Oxidized.config.vars[name.to_s] if Oxidized.config.vars.has_key?(name.to_s) r end end -