grobie (owner)

Revisions

gist: 15785 Download_button fork
public
Public Clone URL: git://gist.github.com/15785.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module ActiveSupport
  module Dependencies
    
    def load_missing_constant_with_shared_code(from_mod, const_name)
      puts "Looking for #{const_name}"
      load_missing_constant_without_shared_code(from_mod, const_name)
    end
    alias_method_chain :load_missing_constant, :shared_code
    
  end
end
# => NameError: undefined method `load_missing_constant' for module `ActiveSupport::Dependencies'
 
# line 484, rails 2.1.1, activesupport/dependencies.rb
ActiveSupport::Dependencies.load_missing_constant self, const_name
 
# ????