Sha256: 13821f4ce7f0d7f8a15b5d604a4302180cc5ae1e40e890751f92f5cd32b971b4
Contents?: true
Size: 288 Bytes
Versions: 3
Compression:
Stored size: 288 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails_kindeditor-0.0.3 | app/models/kindeditor/asset.rb |
rails_kindeditor-0.0.2 | app/models/kindeditor/asset.rb |
rails_kindeditor-0.0.1 | app/models/kindeditor/asset.rb |