diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-18 07:40:27 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-18 07:40:27 +0000 |
commit | b8c07c0325fdfee701de1a68811c941bced606be (patch) | |
tree | a7126bcbf754ea9db00f5f16c02af5af65c5f5dc /activerecord | |
parent | 9357321946f5fdef6a4e1424d2b5d83acf03dfdb (diff) | |
download | rails-b8c07c0325fdfee701de1a68811c941bced606be.tar.gz rails-b8c07c0325fdfee701de1a68811c941bced606be.tar.bz2 rails-b8c07c0325fdfee701de1a68811c941bced606be.zip |
Move nodoc to the individual methods
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1204 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/deprecated_finders.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/deprecated_finders.rb b/activerecord/lib/active_record/deprecated_finders.rb index adc73e0d5d..6f56bf5581 100644 --- a/activerecord/lib/active_record/deprecated_finders.rb +++ b/activerecord/lib/active_record/deprecated_finders.rb @@ -1,5 +1,5 @@ module ActiveRecord - class Base # :nodoc: + class Base class << self # This method is deprecated in favor of find with the :conditions option. # @@ -7,7 +7,7 @@ module ActiveRecord # +RecordNotFound+ is raised if no record can be found matching the +id+ or meeting the condition. # Example: # Person.find_on_conditions 5, "first_name LIKE '%dav%' AND last_name = 'heinemeier'" - def find_on_conditions(ids, conditions) + def find_on_conditions(ids, conditions) # :nodoc: find(ids, :conditions => conditions) end @@ -18,7 +18,7 @@ module ActiveRecord # be used to create the object. In such cases, it might be beneficial to also specify # +orderings+, like "income DESC, name", to control exactly which record is to be used. Example: # Employee.find_first "income > 50000", "income DESC, name" - def find_first(conditions = nil, orderings = nil, joins = nil) + def find_first(conditions = nil, orderings = nil, joins = nil) # :nodoc: find(:first, :conditions => conditions, :order => orderings, :joins => joins) end @@ -32,7 +32,7 @@ module ActiveRecord # the second as the offset. Examples: # Project.find_all "category = 'accounts'", "last_accessed DESC", 15 # Project.find_all ["category = ?", category_name], "created ASC", [15, 20] - def find_all(conditions = nil, orderings = nil, limit = nil, joins = nil) + def find_all(conditions = nil, orderings = nil, limit = nil, joins = nil) # :nodoc: limit, offset = limit.is_a?(Array) ? limit : [ limit, nil ] find(:all, :conditions => conditions, :order => orderings, :joins => joins, :limit => limit, :offset => offset) end |