diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-08 12:35:45 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-08 12:35:45 -0300 |
commit | a2d57fd6b969eb8263d552cf797e37f356f2295d (patch) | |
tree | 1189c5f0179f07efabc620bdad43774d9286389e | |
parent | e5fc096bea4e56a9eb17a80f12775b92c8a8f1ee (diff) | |
download | rails-a2d57fd6b969eb8263d552cf797e37f356f2295d.tar.gz rails-a2d57fd6b969eb8263d552cf797e37f356f2295d.tar.bz2 rails-a2d57fd6b969eb8263d552cf797e37f356f2295d.zip |
Fix changelog indent, remove self from method call in changelog/doc examples
[ci skip]
-rw-r--r-- | activerecord/CHANGELOG.md | 7 | ||||
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index d1e3488c1d..63d5bbb9ee 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,6 +1,6 @@ ## Rails 4.0.0 (unreleased) ## -* Fix ActiveRecord `subclass_from_attrs` when eager_load is false. +* Fix ActiveRecord `subclass_from_attrs` when `eager_load` is false. It cannot find subclass because all classes are loaded automatically when it needs. @@ -24,7 +24,7 @@ Example: sql = Post.connection.unprepared_statement do - Post.first.comments.to_sql + Post.first.comments.to_sql end *Cédric Fabianski* @@ -106,7 +106,8 @@ Example: class ChangeEnum < ActiveRecord::Migration - self.disable_ddl_transaction! + disable_ddl_transaction! + def up execute "ALTER TYPE model_size ADD VALUE 'new_value'" end diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 62e8881c4c..3d71b784e7 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -339,7 +339,8 @@ module ActiveRecord # you can turn the automatic transactions off. # # class ChangeEnum < ActiveRecord::Migration - # self.disable_ddl_transaction! + # disable_ddl_transaction! + # # def up # execute "ALTER TYPE model_size ADD VALUE 'new_value'" # end |