Skip to content

Commit a2d57fd

Browse files
Fix changelog indent, remove self from method call in changelog/doc examples
[ci skip]
1 parent e5fc096 commit a2d57fd

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

activerecord/CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Rails 4.0.0 (unreleased) ##
22

3-
* Fix ActiveRecord `subclass_from_attrs` when eager_load is false.
3+
* Fix ActiveRecord `subclass_from_attrs` when `eager_load` is false.
44
It cannot find subclass because all classes are loaded automatically
55
when it needs.
66

@@ -24,7 +24,7 @@
2424
Example:
2525

2626
sql = Post.connection.unprepared_statement do
27-
Post.first.comments.to_sql
27+
Post.first.comments.to_sql
2828
end
2929

3030
*Cédric Fabianski*
@@ -106,7 +106,8 @@
106106
Example:
107107

108108
class ChangeEnum < ActiveRecord::Migration
109-
self.disable_ddl_transaction!
109+
disable_ddl_transaction!
110+
110111
def up
111112
execute "ALTER TYPE model_size ADD VALUE 'new_value'"
112113
end

activerecord/lib/active_record/migration.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ def initialize
339339
# you can turn the automatic transactions off.
340340
#
341341
# class ChangeEnum < ActiveRecord::Migration
342-
# self.disable_ddl_transaction!
342+
# disable_ddl_transaction!
343+
#
343344
# def up
344345
# execute "ALTER TYPE model_size ADD VALUE 'new_value'"
345346
# end

0 commit comments

Comments
 (0)