File: //usr/local/rvm/gems/ruby-2.6.8/doc/activerecord-6.1.4.1/ri/ActiveRecord/FinderMethods/find_by-i.ri
U:RDoc::AnyMethod[iI"find_by:ETI"(ActiveRecord::FinderMethods#find_by;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"EFinds the first record matching the specified conditions. There ;TI"Gis no implied ordering so if order matters, you should specify it ;TI"yourself.;To:RDoc::Markup::BlankLine o;
; [I"1If no record is found, returns <tt>nil</tt>.;T@o:RDoc::Markup::Verbatim; [I"/Post.find_by name: 'Spartacus', rating: 4
;TI"1Post.find_by "published_at < ?", 2.weeks.ago;T:@format0:
@fileI"1lib/active_record/relation/finder_methods.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(arg, *args);T@FI"FinderMethods;TcRDoc::NormalModule00