From 8ec90d0b934d30c2e39626e0436fba13ad96f695 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 1 Jul 2017 12:11:04 +0200 Subject: Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index fccaa2d2bb..737e47041f 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ ## Example +```ruby class Person < ApplicationRecord has_one :avatar end @@ -39,6 +40,7 @@ class ProfilesController < ApplicationController @person.update! avatar: @person.avatar.update!(image: ) end end +``` ## License -- cgit v1.2.3