Sha256: cd360222a7dfb2a63e91656cc8b6e892af88ad891ccb2711c2e09ad3df7d4e8e

Contents?: true

Size: 399 Bytes

Versions: 4

Compression:

Stored size: 399 Bytes

Contents

class Kindeditor::Asset < ActiveRecord::Base
  self.table_name = 'kindeditor_assets'
  attr_accessible :asset, :file_name, :file_type, :file_size
  #mount_uploader :asset, AssetUploader
  #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

4 entries across 4 versions & 1 rubygems

Version Path
rails_kindeditor_qiniu-0.0.4 lib/generators/rails_kindeditor/migration/templates/models/active_record/kindeditor/asset.rb
rails_kindeditor_qiniu-0.0.3 lib/generators/rails_kindeditor/migration/templates/models/active_record/kindeditor/asset.rb
rails_kindeditor_qiniu-0.0.2 lib/generators/rails_kindeditor/migration/templates/models/active_record/kindeditor/asset.rb
rails_kindeditor_qiniu-0.0.1 lib/generators/rails_kindeditor/migration/templates/models/active_record/kindeditor/asset.rb