Adding order to a has_many without a lambda is deprecated.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class Organization < ActiveRecord::Base
|
||||
validates_uniqueness_of :name
|
||||
has_many :members
|
||||
has_many :users, through: :members, order: "members.created_at DESC"
|
||||
has_many :users, -> { order "members.created_at DESC" }, through: :members
|
||||
|
||||
has_one :account, as: :accountable
|
||||
after_create :create_account
|
||||
|
||||
Reference in New Issue
Block a user