Use proper output format [ci skip] (#27498)
This commit is contained in:
parent
af885f1082
commit
415e17d0b5
|
@ -87,7 +87,7 @@ module ActionDispatch
|
|||
|
||||
# Returns true if the request has a header matching the given key parameter.
|
||||
#
|
||||
# request.key? :ip_spoofing_check #=> true
|
||||
# request.key? :ip_spoofing_check # => true
|
||||
def key?(key)
|
||||
has_header? key
|
||||
end
|
||||
|
|
|
@ -111,7 +111,7 @@ profile.settings = {"color" => "yellow", "resolution" => "1280x1024"}
|
|||
profile.save!
|
||||
|
||||
Profile.where("settings->'color' = ?", "yellow")
|
||||
#=> #<ActiveRecord::Relation [#<Profile id: 1, settings: {"color"=>"yellow", "resolution"=>"1280x1024"}>]>
|
||||
# => #<ActiveRecord::Relation [#<Profile id: 1, settings: {"color"=>"yellow", "resolution"=>"1280x1024"}>]>
|
||||
```
|
||||
|
||||
### JSON
|
||||
|
|
Loading…
Reference in New Issue