lib/clevic/qt.rb in clevic-0.13.0.b6 vs lib/clevic/qt.rb in clevic-0.13.0.b9
- old
+ new
@@ -14,10 +14,10 @@
require 'clevic/qt/table_model.rb'
require 'clevic/qt/table_view.rb'
# all other files in the qt subdirectory
require 'pathname'
-( Pathname.new( __FILE__ ).parent + 'qt' ).children.grep( /.rb$/ ).each do |child|
+( Pathname.new( __FILE__ ).parent + 'qt' ).children.select{|x| x.to_s =~ /.rb$/ }.each do |child|
require child.to_s
end
# now require the generic parts
require 'clevic/table_model'