Sha256: 91f2208cf3e2350844c87bf221c3ef282cbfd94f673f9d5a3ffd492de0688b5e

Contents?: true

Size: 244 Bytes

Versions: 4

Compression:

Stored size: 244 Bytes

Contents

require 'carrierwave'
require 'carrierwave/orm/activerecord'

module PhotosManager
	class Photo < ActiveRecord::Base
		attr_accessible :title, :date, :event_id, :image
		belongs_to :event
		mount_uploader :image, ImageUploader
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
photos_manager-0.0.5 app/models/photos_manager/photo.rb
photos_manager-0.0.4 app/models/photos_manager/photo.rb
photos_manager-0.0.3 app/models/photos_manager/photo.rb
photos_manager-0.0.2 app/models/photos_manager/photo.rb