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

Merge pull request #21674 from amitsuroliya/comment_fix

Replace `#=>` with `# =>` [ci skip]
This commit is contained in:
Carlos Antonio da Silva 2015-09-19 07:22:24 -03:00
commit 0c39a022b0
3 changed files with 4 additions and 4 deletions

View file

@ -10,8 +10,8 @@ module SecureRandom
#
# The result may contain alphanumeric characters except 0, O, I and l
#
# p SecureRandom.base58 #=> "4kUgL2pdQMSCQtjE"
# p SecureRandom.base58(24) #=> "77TMHrHJFvFDwodq8w7Ev2m7"
# p SecureRandom.base58 # => "4kUgL2pdQMSCQtjE"
# p SecureRandom.base58(24) # => "77TMHrHJFvFDwodq8w7Ev2m7"
#
def self.base58(n = 16)
SecureRandom.random_bytes(n).unpack("C*").map do |byte|

View file

@ -242,7 +242,7 @@ end
>> person = Person.new
>> person.valid?
>> person.errors.details[:name] #=> [{error: :blank}]
>> person.errors.details[:name] # => [{error: :blank}]
```
Using `details` with custom validators is covered in the [Working with

View file

@ -239,7 +239,7 @@ You can quickly test the RDoc output with the following command:
```
$ echo "+:to_param+" | rdoc --pipe
#=> <p><code>:to_param</code></p>
# => <p><code>:to_param</code></p>
```
### Regular Font