summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-04-24 11:43:08 +0200
committerhukl <contact@smyck.org>2009-04-25 14:55:27 +0200
commitcf1b60e0cfa7d1a8f4a80d686649cc12e73a634e (patch)
treeb68bd845d290ce968892c4532bcff52083925834 /app/models
parentb2b78c06074046bd73cc3408a29386a976f0469c (diff)
Integrated basic Asset upload functionality. You can upload files now and use their url in pages.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/asset.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/asset.rb b/app/models/asset.rb
new file mode 100644
index 0000000..c9c6296
--- /dev/null
+++ b/app/models/asset.rb
@@ -0,0 +1,10 @@
1class Asset < ActiveRecord::Base
2 has_attached_file(
3 :upload,
4 :styles => {
5 :normal => "450x450",
6 :medium => "300x300",
7 :thumb => "100x100",
8 }
9 )
10end