DEPRECATION WARNING: Using #scope without passing a callable object is deprecated. For example scope :red, where(color: 'red') should be changed to scope :red, -> { where(color: 'red') }. There are numerous gotchas in the former usage and it makes the implementation more complicated and buggy. (If you prefer, you can just define a class method named self.red.). (called from class:Album at /Users/gavin/dev/RestPack/restpack_serializer/spec/fixtures/db.rb:53)
DEPRECATION WARNING: Using #scope without passing a callable object is deprecated. For example
scope :red, where(color: 'red')
should be changed toscope :red, -> { where(color: 'red') }
. There are numerous gotchas in the former usage and it makes the implementation more complicated and buggy. (If you prefer, you can just define a class method namedself.red
.). (called from class:Album at /Users/gavin/dev/RestPack/restpack_serializer/spec/fixtures/db.rb:53)