# Private method \`equal?' called for {}:Hash

**URL:** <https://www.ruby-forum.com/t/private-method-equal-called-for-hash/150260>\
**Category:** Rails\
**Created:** [October 6, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/private-method-equal-called-for-hash/150260 "2008-10-06T18:12:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnAnAn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@AnAnAn](https://www.ruby-forum.com/u/AnAnAn)\
**Post date:** [October 6, 2008, 6:12pm UTC](https://www.ruby-forum.com/t/private-method-equal-called-for-hash/150260/1 "2008-10-06T18:12:08Z")

</div>

I have two servers in production. Same installation, same ruby  
version, same rails, deployed using capistrano.

Suddendly one server gives this error: private method `equal?’ called  
for {}:Hash even if I start the console:

/var/www/reputation/releases/20081006154941/vendor/rails/activerecord/  
lib/…/…/activesupport/lib/active\_support/core\_ext/class/  
inheritable\_attributes.rb:127:in `inherited':NoMethodError: private method`equal?’ called for {}:Hash  
/var/www/reputation/releases/20081006154941/vendor/rails/activerecord/  
lib/…/…/activesupport/lib/active\_support/core\_ext/class/  
inheritable\_attributes.rb:127:in `inherited':NoMethodError: private method`equal?’ called for {}:Hash  
/var/www/reputation/releases/20081006154941/vendor/rails/activerecord/  
lib/…/…/activesupport/lib/active\_support/core\_ext/class/  
inheritable\_attributes.rb:127:in  
`inherited_without_layout':NoMethodError: private method`equal?’  
called for #Hash:0xb76c5978

What can it be ?

I have deleted, rebooted and redeployed from scratch but the error  
persists.

---

<div class="post-metadata">

**Author:** ![AnAnAn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@AnAnAn](https://www.ruby-forum.com/u/AnAnAn)\
**Post date:** [October 27, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/private-method-equal-called-for-hash/150260/2 "2008-10-27T16:06:05Z")

</div>

Hi,

Did you solve this problem? I have exactly the same issue…

H.

---

<div class="post-metadata">

**Author:** ![AnAnAn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@AnAnAn](https://www.ruby-forum.com/u/AnAnAn)\
**Post date:** [October 28, 2008, 8:28am UTC](https://www.ruby-forum.com/t/private-method-equal-called-for-hash/150260/3 "2008-10-28T08:28:53Z")

</div>

Hi,

it appears it was Debian specific issue in my problem.

Debian’s libgsl-ruby library automatically included GSL namespace when  
library was included. I had to edit gsl.rb file and comment out  
“include GSL” to prevent conflict with activesupport.

H.
