From df36a3b37200dadf3a0ca121476d80dc448462db Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Mon, 12 May 2014 08:37:37 -0700 Subject: :scissors: --- activerecord/README.rdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activerecord/README.rdoc b/activerecord/README.rdoc index 335f0e083f..7d00d86023 100644 --- a/activerecord/README.rdoc +++ b/activerecord/README.rdoc @@ -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: @@ -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. -- cgit v1.2.3 From 9b6b32a76edafd0c19c14b61565e536e2238a068 Mon Sep 17 00:00:00 2001 From: Harshad Sabne Date: Tue, 27 May 2014 15:32:38 +0530 Subject: [ci skip] Fix Compiler's Github link --- guides/source/3_2_release_notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/3_2_release_notes.md b/guides/source/3_2_release_notes.md index cdcde67869..2416e1a228 100644 --- a/guides/source/3_2_release_notes.md +++ b/guides/source/3_2_release_notes.md @@ -562,4 +562,4 @@ Credits See the [full list of contributors to Rails](http://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). -- cgit v1.2.3 From d7d7211c5344d5af9968abbb70e84fec64858781 Mon Sep 17 00:00:00 2001 From: schneems Date: Sun, 11 May 2014 12:55:05 -0500 Subject: [ci skip] add created_at and updated_at to example --- activerecord/lib/active_record/attribute_assignment.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/activerecord/lib/active_record/attribute_assignment.rb b/activerecord/lib/active_record/attribute_assignment.rb index 87ecbe54f1..59614a67b1 100644 --- a/activerecord/lib/active_record/attribute_assignment.rb +++ b/activerecord/lib/active_record/attribute_assignment.rb @@ -13,9 +13,9 @@ module ActiveRecord # 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. # -- cgit v1.2.3 From 1913f1ef90e44f0977e1278cfafd8131f9fa58a3 Mon Sep 17 00:00:00 2001 From: schneems Date: Thu, 29 May 2014 14:40:02 -0500 Subject: document generators hidden_namespaces --- railties/lib/rails/generators.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/railties/lib/rails/generators.rb b/railties/lib/rails/generators.rb index dce734b54e..7ff580d449 100644 --- a/railties/lib/rails/generators.rb +++ b/railties/lib/rails/generators.rb @@ -160,6 +160,11 @@ module Rails 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] -- cgit v1.2.3