Sha256: 1b41922393a2133a46720f8b91428b3f30a177bd7deffc44239dd99e13adcbd6
Contents?: true
Size: 286 Bytes
Versions: 11
Compression:
Stored size: 286 Bytes
Contents
class Kindeditor::Asset < ActiveRecord::Base set_table_name "kindeditor_assets" validates_presence_of :asset before_save :update_asset_attributes private def update_asset_attributes self.file_size = asset.file.size self.file_type = asset.file.content_type end end
Version data entries
11 entries across 11 versions & 1 rubygems