Sha256: 05757a1dbed7e9319a5a430d077d6c105d2afa122639cf5bbfc146b42b435ba1

Contents?: true

Size: 275 Bytes

Versions: 2

Compression:

Stored size: 275 Bytes

Contents

require "carrierwave"
require "carrierwave/orm/activerecord"
module Adminpanel
	class Client < ActiveRecord::Base
		attr_accessible :name, :logo
		mount_uploader :logo, Adminpanel::ClientUploader

		validates_presence_of :name
		validates_presence_of :logo
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adminpanel-0.1.0cl.2 app/models/adminpanel/client.rb
adminpanel-0.1.0cl app/models/adminpanel/client.rb