summaryrefslogtreecommitdiff
path: root/app/models/asset.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/asset.rb')
-rw-r--r--app/models/asset.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/asset.rb b/app/models/asset.rb
index d27c5255..3ad58574 100644
--- a/app/models/asset.rb
+++ b/app/models/asset.rb
@@ -2,9 +2,11 @@ class Asset < ActiveRecord::Base
2 2
3 has_many :related_assets, :dependent => :destroy 3 has_many :related_assets, :dependent => :destroy
4 has_many :pages, :through => :related_assets 4 has_many :pages, :through => :related_assets
5 5
6 has_attached_file( 6 has_attached_file(
7 :upload, 7 :upload,
8 :path => ":rails_root/public/system/:attachment/:id/:style/:filename",
9 :url => "/system/:attachment/:id/:style/:filename",
8 :styles => { 10 :styles => {
9 :medium => "300x300", 11 :medium => "300x300",
10 :thumb => "100x100", 12 :thumb => "100x100",