Sha256: 7a3d16eda3f1b8137c2b12534cab66f31a4302647ca47868dd04499007661ca3
Contents?: true
Size: 910 Bytes
Versions: 1
Compression:
Stored size: 910 Bytes
Contents
module Flucti module Utilities module CoreExt def self.apply! # Proper version of #constantize, since ActiveSupport's behaves strangely. String.class_eval do def constantize split('::').inject(Object) { |mod, name| mod.const_get(name) } end end Pathname.class_eval do alias_method :/, :+ protected :+ end # Thorough version of `unhook!'. ActiveSupport::Dependencies.unhook! ActiveSupport::Dependencies::ClassConstMissing.module_eval do def const_missing(*args) super end end ActiveSupport::Inflector.inflections do |inflect| inflect.singular('databases', 'database') end WebService::RemoteCollection.class_eval do include ConnectionErrorHandling end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Flucti-flucti-cli-0.1.16 | lib/flucti/utilities/core_ext.rb |