1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

make the inline text a comment in the code block

This commit is contained in:
Karthik Muthupalaniappan 2011-11-04 15:22:50 +05:30
parent d163d3bf7e
commit 36a5f48f93
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View file

@ -21,3 +21,5 @@ debug.log
/railties/guides/output
/railties/tmp
/RDOC_MAIN.rdoc
.DS_Store
activemodel/.DS_Store

View file

@ -175,7 +175,7 @@ modules:
attr_accessor :name
end
You could use any of the two ways mentioned above to use a Custom Validator.
#You could use any of the two ways mentioned above to use a Custom Validator.
class HasNameValidator < ActiveModel::Validator
def validate(record)