Sha256: 813bd88b67bc9ba1722db4930f2c912c1337097c7fec86cd7629f3340efa90f2

Contents?: true

Size: 280 Bytes

Versions: 3

Compression:

Stored size: 280 Bytes

Contents

class Asset < ActiveRecord::Base
  has_many :contents, :through => :asset_assignments
  has_many :asset_assignments, :order => 'position', :dependent => :delete_all
  
  has_attached_file :attachment, :styles => {:thumb => '100x100>'} # doesn't resize for some reason, check!
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
emergent-core-0.1.0 rails_generators/emergent_config/templates/app/models/asset.rb
emergent-core-0.1.01 rails_generators/emergent_config/templates/app/models/asset.rb
emergent-core-0.1.02 rails_generators/emergent_config/templates/app/models/asset.rb