amistad icon indicating copy to clipboard operation
amistad copied to clipboard

Deprecated options in has_many

Open mdesanti opened this issue 11 years ago • 5 comments

I'm getting the following warning in my application:

DEPRECATION WARNING: The following options in your User.has_many :pending_invited declaration are deprecated: :conditions. Please use a scope block instead. For example, the following:

has_many :spam_comments, conditions: { spam: true }, class_name: 'Comment'

mdesanti avatar Oct 24 '13 13:10 mdesanti

me too. any fix or workaround?

akisvolanis avatar Jan 28 '14 15:01 akisvolanis

i've create my own fork that address Rails 4 deprecations.

gem 'amistad', github: 'blotto/amistad

https://github.com/blotto/amistad

blotto avatar Jan 28 '14 16:01 blotto

great! thanks!

akisvolanis avatar Jan 28 '14 17:01 akisvolanis

@blotto, thank you for your fork :) Just to know, does your new branch (group_friends) will be merged or is still usable?

ghigt avatar Apr 17 '14 21:04 ghigt

hey @ghigt , that branch is a scratchpad, not worth merging any time soon :)

blotto avatar Apr 17 '14 21:04 blotto