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:
parent
d163d3bf7e
commit
36a5f48f93
2 changed files with 3 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -21,3 +21,5 @@ debug.log
|
|||
/railties/guides/output
|
||||
/railties/tmp
|
||||
/RDOC_MAIN.rdoc
|
||||
.DS_Store
|
||||
activemodel/.DS_Store
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue