método indefinido `default_scoped? ' enquanto acessa o escopo

Estou recebendo este erro ao acessar escopos.

Aqui está o modelo AR

class StatisticVariable < ActiveRecord::Base
  attr_accessible :code, :name

  has_many  :statistic_values

  scope :logins, where(code: 'logins').first
  scope :unique_logins, where(code: 'unique_logins').first
  scope :registrations, where(code: 'registrations').first

end

e quando eu tentoStatisticVariable.logins ou qualquer outro escopo que der:

NoMethodError: undefined method `default_scoped?'

Se eu configurar o escopo como método de classe, ele funcionará perfeitamente.

def self.registrations
    where(code: 'registrations').first
end

Por favor me guie para entender e consertar esse problema.

questionAnswers(2)

yourAnswerToTheQuestion