diff options
| author | hukl <contact@smyck.org> | 2009-08-31 14:17:41 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-08-31 14:17:41 +0200 |
| commit | e15b4259620a08b89ac390e7628c7e3081388526 (patch) | |
| tree | 883a69fe6f371cd16860fc27cb84aa9f7c580b91 | |
| parent | a9b003b7c3e636f32b7f031d12cf1aa41dbca1b9 (diff) | |
added cropped headline thumbnail
| -rw-r--r-- | app/models/asset.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models/asset.rb b/app/models/asset.rb index 4a20d73..6f727ad 100644 --- a/app/models/asset.rb +++ b/app/models/asset.rb | |||
| @@ -1,10 +1,11 @@ | |||
| 1 | class Asset < ActiveRecord::Base | 1 | class Asset < ActiveRecord::Base |
| 2 | |||
| 2 | has_attached_file( | 3 | has_attached_file( |
| 3 | :upload, | 4 | :upload, |
| 4 | :styles => { | 5 | :styles => { |
| 5 | :normal => "450x450", | 6 | :medium => "300x300", |
| 6 | :medium => "300x300", | 7 | :thumb => "100x100", |
| 7 | :thumb => "100x100", | 8 | :headline => "530x250#" |
| 8 | } | 9 | } |
| 9 | ) | 10 | ) |
| 10 | 11 | ||
