Sha256: 554a6874dd2ba603ed99c4e74e54ed84cb8a1ba817c9878a031c37c2ed7cb9ac
Contents?: true
Size: 497 Bytes
Versions: 18
Compression:
Stored size: 497 Bytes
Contents
# encoding: utf-8 module ConstructorPages module Types class ImageType < ActiveRecord::Base attr_accessible :value, :field_id, :page_id belongs_to :field belongs_to :page image_accessor :value validates :value, :presence => true validates_size_of :value, :maximum => 5.megabytes, :message => :incorrect_size validates_property :mime_type, :of => :value, :in => %w(image/jpeg image/png image/gif), :message => :incorrect_format end end end
Version data entries
18 entries across 18 versions & 2 rubygems