RestPack / restpack_serializer

Model serialization, paging, side-loading and filtering
MIT License
175 stars 43 forks source link

Fix depreciation warning when running specs #55

Closed GavinJoyce closed 10 years ago

GavinJoyce commented 10 years ago

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)

GavinJoyce commented 10 years ago

https://github.com/RestPack/restpack_serializer/commit/8e1af1c8c5a7f443dcc66dd791b683dd90482d6b