Project

General

Profile

action #2296

Get rid of the deprecation warning introduced by some gem

Added by ancorgs over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Development
Target version:
Start date:
2014-04-10
Due date:
% Done:

100%

Estimated time:
2.00 h

Description

After migration to Rails 4 this warning is being displayed. The wrong call is not in TSP source code, so we have to find the offender gem and a way to fix the warning.

DEPRECATION WARNING: Calling #default_scope without a block is deprecated. For example instead of default_scope where(color: 'red'), please use default_scope { where(color: 'red') }. (Alternatively you can just redefine self.default_scope.).

History

#1 Updated by ancorgs over 8 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 20

Offending gem (auditor) found. Pull request fixing the issue sent to the original developer https://github.com/kunklejr/auditor/pull/14

#2 Updated by ancorgs over 8 years ago

Trying to reach the author again after two weeks without a reply.

#3 Updated by ancorgs over 8 years ago

The author accepted the pull request and released a new version... which have another problem. Pinging him again.

#4 Updated by ancorgs over 8 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 20 to 100

Dropping auditor in favor of espinita, which uses an almost identical approach, is actively maintained for Rails 4 and have a catchy name.

https://github.com/continuum/espinita

Also available in: Atom PDF