method
first
v2.1.0 -
Show latest stable
- Class:
ActiveRecord::NamedScope::Scope
first(*args)public
No documentation available.
# File activerecord/lib/active_record/named_scope.rb, line 122
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