# File lib/active_record/relation/finder_methods.rb, line 114 def first(*args) if args.any? if args.first.kind_of?(Integer) || (loaded? && !args.first.kind_of?(Hash)) limit(*args).to_a else apply_finder_options(args.first).first end else find_first end end