mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
add blanks between methods
This commit is contained in:
@@ -5,14 +5,17 @@ class Post
|
||||
extend ActiveModel::Naming
|
||||
include ActiveModel::Conversion
|
||||
attr_writer :id, :body
|
||||
|
||||
def initialize
|
||||
@id = nil
|
||||
@body = nil
|
||||
super
|
||||
end
|
||||
|
||||
def id
|
||||
@id || 45
|
||||
end
|
||||
|
||||
def body
|
||||
super || @body || "What a wonderful world!"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user