Forum: Ruby on Rails getting error like undefined local variable or method `confi

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Prashant T. (Guest)
on 2006-05-03 17:23

This is one of the method in "spam_protection.rb" in typo 2.6.0
  def article_closed?(record)
    if config['sp_article_auto_close'] > 0
      if record.article.created_at.to_i <
config['sp_article_auto_close'].days.ago.to_i"[SP] Blocked interaction with
        return true
When I am trying to post comment I am getting error like:-
undefined local variable or method `config' for

Why I am getting this error?  Where I am wrong?

Please tell me.
Thanx in advance.
This topic is locked and can not be replied to.