Sha256: f06abba5550c978dee0e014294ff3d9b4c879daa62045f6e67a7c31aa7f9d180

Contents?: true

Size: 214 Bytes

Versions: 12

Compression:

Stored size: 214 Bytes

Contents

class Avatar < Asset
  ab_admin_uploader AvatarUploader
  
	validates :data_content_type, inclusion: {in: AbAdmin.image_types }
	validates_integrity_of :data
  validates_filesize_of :data, maximum: 1.megabyte

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ab_admin-0.11.0 lib/generators/ab_admin/install/templates/models/avatar.rb
ab_admin-0.10.0 lib/generators/ab_admin/install/templates/models/avatar.rb
ab_admin-0.9.0 lib/generators/ab_admin/install/templates/models/avatar.rb
ab_admin-0.8.3 lib/generators/ab_admin/install/templates/models/avatar.rb
ab_admin-0.8.2 lib/generators/ab_admin/install/templates/models/avatar.rb
ab_admin-0.8.1 lib/generators/ab_admin/install/templates/models/avatar.rb
ab_admin-0.8.0 lib/generators/ab_admin/install/templates/models/avatar.rb
ab_admin-0.7.0 lib/generators/ab_admin/install/templates/models/avatar.rb
ab_admin-0.6.1 lib/generators/ab_admin/install/templates/models/avatar.rb
ab_admin-0.6.0 lib/generators/ab_admin/install/templates/models/avatar.rb
ab_admin-0.5.0 lib/generators/ab_admin/install/templates/models/avatar.rb
ab_admin-0.4.0 lib/generators/ab_admin/install/templates/models/avatar.rb