0

I have the following code in my application controller

  config = Configuration.first
  admin_user = User.where(:admin => true)

  def has_admin
    admin_user.eql? nil
  end

  def has_configuration
    config.eql? nil
  end

The has_config method works, the has_admin method does not work. Kind of frustrating as it seems like if one of the methods works then the other one should as well. Does anyone have any ideas?

4

0 回答 0