Module: ZookeeperACLs
- Extended by:
- Zookeeper::Compatibility
- Defined in:
- lib/zookeeper/compatibility.rb
Class Method Summary collapse
Methods included from Zookeeper::Compatibility
Class Method Details
.const_missing(sym) ⇒ Object
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/zookeeper/compatibility.rb', line 70 def self.const_missing(sym) candidates = [Zookeeper::ACLs, Zookeeper::Constants, Zookeeper::ACLs::Constants] candidates.each do |candidate| if candidate.const_defined?(sym) warn "\n#{self.name}::#{sym} is now located in #{candidate}::#{sym}, please update your code!\n#{clean_backtrace}" c = candidate.const_get(sym) # self.const_set(sym, c) return c end end super end |