method

first

rails latest stable - Class: ActiveRecord::NamedScope::Scope

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

first(*args)
public

No documentation available.

# File activerecord/lib/active_record/named_scope.rb, line 128
      def first(*args)
        if args.first.kind_of?(Integer) || (@found && !args.first.kind_of?(Hash))
          proxy_found.first(*args)
        else
          find(:first, *args)
        end
      end