jeudi 26 mars 2015

undefined local variable or method `acts_as_paranoid'

Environment:


gem "paranoia", "~> 2.0" (http://ift.tt/RXw1ao);


rails 4.1.8;


sqlite3;


When I did Listing.find(1) in rails console, it sends me such error message: undefined local variable or method `acts_as_paranoid' for Listing (call 'Listing.connection' to establish a connection):Class


If I remove the acts_as_paranoid in Listing model, the query can go through.


Other than rails console, the paranoia gem itself works well.


Does anyone meet this issue before?


Aucun commentaire:

Enregistrer un commentaire