Open zedtux opened 5 years ago
This method ease the code readability I believe :
User.exists?(username: 'nviennot')
instead of
User.where(username: 'nviennot').present?
BTW here is the AR implementation: https://github.com/rails/rails/blob/master/activerecord/lib/active_record/relation/finder_methods.rb#L300
This method ease the code readability I believe :
instead of