Skip to content

Commit 2f1c9c8

Browse files
committed
Fix code blocks identation on AR and AS CHANGELOGs
1 parent fee49a1 commit 2f1c9c8

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

activerecord/CHANGELOG.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -342,13 +342,13 @@
342342
* Reset @column_defaults when assigning `locking_column`.
343343
We had a potential problem. For example:
344344

345-
class Post < ActiveRecord::Base
346-
self.column_defaults # if we call this unintentionally before setting locking_column ...
347-
self.locking_column = 'my_locking_column'
348-
end
345+
class Post < ActiveRecord::Base
346+
self.column_defaults # if we call this unintentionally before setting locking_column ...
347+
self.locking_column = 'my_locking_column'
348+
end
349349

350-
Post.column_defaults["my_locking_column"]
351-
=> nil # expected value is 0 !
350+
Post.column_defaults["my_locking_column"]
351+
=> nil # expected value is 0 !
352352

353353
*kennyj*
354354

activesupport/CHANGELOG.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222

2323
You can do this:
2424

25-
class JokeSubscriber < ActiveSupport::Subscriber
26-
# This is much easier to read!
27-
attach_to "active_record"
25+
class JokeSubscriber < ActiveSupport::Subscriber
26+
# This is much easier to read!
27+
attach_to "active_record"
2828

29-
def sql(event)
30-
puts "A rabbi and a priest walk into a bar..."
29+
def sql(event)
30+
puts "A rabbi and a priest walk into a bar..."
31+
end
3132
end
32-
end
3333

3434
This should make it easier to read and understand these subscribers.
3535

0 commit comments

Comments
 (0)