Permalink
Browse files

Fix code blocks identation on AR and AS CHANGELOGs

  • Loading branch information...
lucasmazza committed Oct 16, 2013
1 parent fee49a1 commit 2f1c9c8d60bde99cf337eca870dca60cbaf3a47a
Showing with 12 additions and 12 deletions.
  1. +6 −6 activerecord/CHANGELOG.md
  2. +6 −6 activesupport/CHANGELOG.md
View
@@ -342,13 +342,13 @@
* Reset @column_defaults when assigning `locking_column`.
We had a potential problem. For example:
- class Post < ActiveRecord::Base
- self.column_defaults # if we call this unintentionally before setting locking_column ...
- self.locking_column = 'my_locking_column'
- end
+ class Post < ActiveRecord::Base
+ self.column_defaults # if we call this unintentionally before setting locking_column ...
+ self.locking_column = 'my_locking_column'
+ end
- Post.column_defaults["my_locking_column"]
- => nil # expected value is 0 !
+ Post.column_defaults["my_locking_column"]
+ => nil # expected value is 0 !
*kennyj*
View
@@ -22,14 +22,14 @@
You can do this:
- class JokeSubscriber < ActiveSupport::Subscriber
- # This is much easier to read!
- attach_to "active_record"
+ class JokeSubscriber < ActiveSupport::Subscriber
+ # This is much easier to read!
+ attach_to "active_record"
- def sql(event)
- puts "A rabbi and a priest walk into a bar..."
+ def sql(event)
+ puts "A rabbi and a priest walk into a bar..."
+ end
end
- end
This should make it easier to read and understand these subscribers.

1 comment on commit 2f1c9c8

hanyo commented on 2f1c9c8 Oct 22, 2013

Hello.
I'm hanyo.

I want to study Ruby.
So, I'm watching your code.

Your code is nice.

I want to study from your and other's code.

Please sign in to comment.