method
first
rails latest stable - Class:
ActiveRecord::NamedScope::Scope
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