aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 1 insertions, 16 deletions
diff --git a/README.md b/README.md
index 5160acda56..a72c79948f 100644
--- a/README.md
+++ b/README.md
@@ -6,26 +6,11 @@
```ruby
class Person < ApplicationRecord
- has_one :avatar
-end
-
-class Avatar < ApplicationRecord
- belongs_to :person
- belongs_to :image, class_name: 'ActiveVault::Blob'
-
- has_file :image
+ has_file :avatar
end
avatar.image.url(expires_in: 5.minutes)
-
-class ActiveVault::DownloadsController < ActionController::Base
- def show
- head :ok, ActiveVault::Blob.locate(params[:id]).download_headers
- end
-end
-
-
class AvatarsController < ApplicationController
def create
# @avatar = Avatar.create \