Skip to content

Ruby - conflict between qtbindings and active record with Ruby 1.9.2 #13

Closed
limemac85 opened this Issue Dec 14, 2010 · 2 comments

3 participants

@limemac85

I have managed to isolate a conflict between qtbindings and active record to a small number of lines:

###############################
require 'active_record'
require 'Qt4'
require 'sqlite3'

class Review < ActiveRecord::Base
end
#################################

When trying to run the above lines in ruby 1.9.2 I get the following error:
/usr/local/rvm/gems/ruby-1.9.2-p0/gems/qtbindings-4.6.3.2/lib/Qt/qtruby4.rb:3164:in
constants': wrong number of arguments (1 for 0) (ArgumentError)
from
/usr/local/rvm/gems/ruby-1.9.2-p0/gems/activesupport-3.0.3/lib/active_support/core_ext/module/introspection.rb:79:in
local_constants'

It looks like there is a conflict with definition of 'constants'
I posted this message on the Ruby forum and got a good explanation what may have happened:

http://www.ruby-forum.com/topic/654513#new

@x37v
x37v commented Feb 10, 2011

there is a mailing list post about this as well: http://lists.kde.org/?l=kde-bindings&m=129231601221959&w=2

@ryanmelt
Owner
ryanmelt commented Aug 6, 2011

I checked in Stefano's fix from the mailing list. Thanks.

@ryanmelt ryanmelt closed this Aug 6, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.