Sha256: 0fe6302a592f7b14482a259938605266bd0e49d81f16475987ff043c71ffaf4d

Contents?: true

Size: 241 Bytes

Versions: 1

Compression:

Stored size: 241 Bytes

Contents

class SpudCustomField < ActiveRecord::Base
	belongs_to :parent,:polymorphic => true
	validates :name,:presence => true
	validates :value,:presence => true
	validates :parent_type,:presence => true
	validates :parent_id,:presence => true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spud_cms-0.3.0 app/models/spud_custom_field.rb