Sha256: b36687c3fff95d78154c9a30d37cbb9fc1e266107b312a236e8f9a511a1af3f0

Contents?: true

Size: 228 Bytes

Versions: 5

Compression:

Stored size: 228 Bytes

Contents

class Blog < ActiveRecord::Base
  attr_accessible :body, :name
  has_many :assets, :as => :attachable, :dependent => :destroy, class_name: Brightcontent::Asset
  accepts_nested_attributes_for :assets, :allow_destroy => true
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
brightcontent-assets-2.0.5 app/models/blog.rb
brightcontent-assets-2.0.3 app/models/blog.rb
brightcontent-assets-2.0.2 app/models/blog.rb
brightcontent-assets-2.0.1 app/models/blog.rb
brightcontent-assets-2.0.0.alpha6 app/models/blog.rb