Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rails/docrails
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaydev committed Jun 1, 2014
2 parents 26c38fe + 1913f1e commit 4ae90a7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions activerecord/README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ A short rundown of some of the major features:

class Product < ActiveRecord::Base
end

{Learn more}[link:classes/ActiveRecord/Base.html]

The Product class is automatically mapped to the table named "products",
which might look like this:

Expand All @@ -33,7 +33,7 @@ which might look like this:

This would also define the following accessors: `Product#name` and
`Product#name=(new_name)`.


* Associations between objects defined by simple class methods.

Expand Down
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/attribute_assignment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ module AttributeAssignment
# exception is raised.
#
# cat = Cat.new(name: "Gorby", status: "yawning")
# cat.attributes # => { "name" => "Gorby", "status" => "yawning" }
# cat.attributes # => { "name" => "Gorby", "status" => "yawning", "created_at" => nil, "updated_at" => nil}
# cat.assign_attributes(status: "sleeping")
# cat.attributes # => { "name" => "Gorby", "status" => "sleeping" }
# cat.attributes # => { "name" => "Gorby", "status" => "sleeping", "created_at" => nil, "updated_at" => nil }
#
# New attributes will be persisted in the database when the object is saved.
#
Expand Down
2 changes: 1 addition & 1 deletion guides/source/3_2_release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -562,4 +562,4 @@ Credits

See the [full list of contributors to Rails](http:https://contributors.rubyonrails.org/) for the many people who spent many hours making Rails, the stable and robust framework it is. Kudos to all of them.

Rails 3.2 Release Notes were compiled by [Vijay Dev](https://github.com/vijaydev.)
Rails 3.2 Release Notes were compiled by [Vijay Dev](https://github.com/vijaydev).
5 changes: 5 additions & 0 deletions railties/lib/rails/generators.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ def self.invoke(namespace, args=ARGV, config={})
end
end

# Returns an array of generator namespaces that are hidden.
# Generator namespaces may be hidden for a variety of reasons.
# Some are aliased such as "rails:migration" and can be
# invoked with the shorter "migration", others are private to other generators
# such as "css:scaffold".
def self.hidden_namespaces
@hidden_namespaces ||= begin
orm = options[:rails][:orm]
Expand Down

0 comments on commit 4ae90a7

Please sign in to comment.