Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with super not passing params with IR #2033

nirvdrum opened this Issue Oct 9, 2014 · 2 comments


None yet
3 participants
Copy link

commented Oct 9, 2014

Here's a simple test case reduced from a Rails 3.2 app:

$ cat super_problem.rb 
module ActiveSupport
  module Dependencies
    extend self

    module Loadable
      def load_dependency(file)
      rescue Exception => e

      def require(file)
        result = false
        load_dependency(file) { result = super }

include ActiveSupport::Dependencies::Loadable
require 'yaml'


$ ruby super_problem.rb 
ArgumentError: wrong number of arguments (0 for 1)
          require at /home/nirvdrum/.rbenv/versions/
          require at super_problem.rb:14
  load_dependency at super_problem.rb:7
          require at super_problem.rb:14
           (root) at super_problem.rb:22

Expected: No output. The YAML lib should just load.

Ruby version:

$ ruby -v
jruby (2.1.2p142) 2014-10-09 c72837d Java HotSpot(TM) 64-Bit Server VM 25.20-b23 on 1.8.0_20-b26 [linux-amd64]

This comment has been minimized.

Copy link

commented Oct 26, 2014

@nirvdrum I believe this has now been fixed. Your test script now works for me.


This comment has been minimized.

Copy link
Contributor Author

commented Jan 15, 2015

Yeah. My specs have been passing for a while now. Closing this one. Thanks!

@nirvdrum nirvdrum closed this Jan 15, 2015

@subbuss subbuss added the ir label Jan 15, 2015

@enebo enebo added this to the milestone Jan 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.