Revision 5c004100
Added by Marc Dequènes almost 15 years ago
- ID 5c0041007ec2c0cbf098919afed233d2d748280b
app/models/artwork_step_image.rb | ||
---|---|---|
|
||
public :after_process_attachment
|
||
attr_accessor :saved_attachment
|
||
|
||
def thumbnail(size)
|
||
self.artwork_step_thumbnails.find_by_thumbnail(size.to_s)
|
||
end
|
||
end
|
Also available in: Unified diff
[evol] ArtworkStepImage: added helper method to get a thumbnail by size