Sha256: f490a8757da33581d144cb6dd0dd1f5fb92028e078cd17ecdeef6195c1e3f803
Contents?: true
Size: 353 Bytes
Versions: 8
Compression:
Stored size: 353 Bytes
Contents
class Kindeditor::Asset < ActiveRecord::Base self.table_name = 'kindeditor_assets' mount_uploader :asset, AssetUploader validates_presence_of :asset before_save :update_asset_attributes attr_accessible :asset private def update_asset_attributes self.file_size = asset.file.size self.file_type = asset.file.content_type end end
Version data entries
8 entries across 8 versions & 1 rubygems