From 01204e1443213a1553949978366b8ec04665a7fd Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Tue, 7 Jan 2014 19:00:38 +0000 Subject: [PATCH] add attached_file property to location model --- app/models/location.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/models/location.rb b/app/models/location.rb index f0fe2a20..2af86f92 100644 --- a/app/models/location.rb +++ b/app/models/location.rb @@ -6,6 +6,13 @@ class Location field :type_of, :type => String field :description, :type => String + # Map + has_attached_file :map, styles: { + thumb: '200x200>', + square: '300x300#', + medium: '400x400>' + } + # Culture field :population, :type => String field :language, :type => String