method

find_first

Importance_0
v3.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::FinderMethods
find_first() protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/relation/finder_methods.rb, line 329
    def find_first
      if loaded?
        @records.first
      else
        @first ||= limit(1).to_a[0]
      end
    end
Register or log in to add new notes.