raw1z / amistad

Adds friendships management into a rails application
http://github.com/raw1z/amistad
MIT License
185 stars 71 forks source link

Deprecated options in has_many #43

Open mdesanti opened 10 years ago

mdesanti commented 10 years ago

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'
akisvolanis commented 10 years ago

me too. any fix or workaround?

blotto commented 10 years ago

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

gem 'amistad', github: 'blotto/amistad

https://github.com/blotto/amistad

akisvolanis commented 10 years ago

great! thanks!

ghigt commented 10 years ago

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

blotto commented 10 years ago

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