I have a model with:
has_and_belongs_to_many :users
How do I validate that the model has at least one user in the model? I tried:
In rails 4 you can just do
validates :users, presence: true