rails / arel

A Relational Algebra
2.06k stars 390 forks source link

NoMethodError: undefined method `blank?' for #<Arel::Nodes::Ascending:0x30e1498> #456

Closed scriptfans closed 7 years ago

scriptfans commented 7 years ago

On my Nvidia jetson tx1 development board (arm64 architecture, ubuntu 16.04), when I upgrade ruby to 2.3.2, the ActiveRecord's order method is break:

3dd9b843-74ff-4ce5-99ee-71453ce273b6

In fact, after I test, This bug is present in several development boards(Nvidia Jetson TK1 and Jetson TX1, Their environment are both rails 5.0.01, ruby 2.3.2, postgresql 9.5):

2.3.0 :001 > User < ActiveRecord::Base => true 2.3.0 :002 > User.order(:created_at) (Object doesn't support #inspect) => 2.3.0 :003 > User.order(:created_at).count NoMethodError: undefined method `blank?' for #

For now, in order to solve this problem, I can only downgrade the ruby version to 2.3.1 (2.4.0-preview3 has the same problem), anybody can help me? thanks.

rafaelfranca commented 7 years ago

If changing the version of ruby make it works so it is a ruby bug. Thank you for the report.