Skip to content
Browse files

copy edits[ci skip]

  • Loading branch information...
1 parent 8f80589 commit 7f24d3d6956a7775771302d143e3b09de681d12f @vijaydev vijaydev committed May 19, 2013
View
19 activerecord/lib/active_record/associations/builder/association.rb
@@ -1,17 +1,14 @@
-# This is the parent Association class which defines certain class variables (valid_options) and
-# instance variables (model, name, scope, options, reflection) which would be common across all the associations that we known today in Rails..
-# Every association need to have the values of these variables set and they are used at multiple places
-# The heirarchy is defined as follows:
+# This is the parent Association class which defines the variables
+# used by all associations.
+#
+# The hierarchy is defined as follows:
# Association
# - SingularAssociation
-# - BelongsTo
-# - HasOne
+# - BelongsToAssociation
+# - HasOneAssociation
# - CollectionAssociation
-# - HasMany
-# - HasAndBelongsToMany
-#
-# The HasMany :Through association is a special case of HasMany association with the :through option set for it
-#
+# - HasManyAssociation
+# - HasAndBelongsToManyAssociation
module ActiveRecord::Associations::Builder
class Association #:nodoc:
View
2 activerecord/lib/rails/generators/active_record/model/model_generator.rb
@@ -13,7 +13,7 @@ class ModelGenerator < Base # :nodoc:
class_option :indexes, :type => :boolean, :default => true, :desc => "Add indexes for references and belongs_to columns"
- # creates the migration file for the model first followed by the model file itself
+ # creates the migration file for the model.
def create_migration_file
return unless options[:migration] && options[:parent].nil?
View
4 railties/lib/rails/generators/named_base.rb
@@ -19,9 +19,7 @@ def initialize(args, *options) #:nodoc:
end
# Defines the template that would be used for the migration file.
- # The source defines the source template file that would be used in creating the migration
- # The args is an array containing any other options and the name of the file which would be saved on the filesystem
-
+ # The arguments include the source template file, the migration filename etc.
no_tasks do
def template(source, *args, &block)
inside_template do

0 comments on commit 7f24d3d

Please sign in to comment.
Something went wrong with that request. Please try again.