Sha256: eb0cd2ed17692c8cbc846a45b56781b7d1a79c970d5b4481159552cc13249df5

Contents?: true

Size: 482 Bytes

Versions: 5

Compression:

Stored size: 482 Bytes

Contents

# Stores the contents of database-backed files for this application.
class <%= file_name.classify %> < ActiveRecord::Base
  include FileBlobs::BlobModel

  # The list below must include all the models that that use has_file_blob and
  # store data using this model class. Omitting a module will lead to data
  # loss, as content blobs will get garbage-collected prematurely.
  blob_owner_class_names! 'BlobOwner'

  # Place any extensions to the file contents blob class below.
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
file_blobs_rails-0.2.3 lib/file_blobs_rails/generators/templates/file_blob.rb.erb
file_blobs_rails-0.2.2 lib/file_blobs_rails/generators/templates/file_blob.rb.erb
file_blobs_rails-0.2.1 lib/file_blobs_rails/generators/templates/file_blob.rb.erb
file_blobs_rails-0.2.0 lib/file_blobs_rails/generators/templates/file_blob.rb.erb
file_blobs_rails-0.1.0 lib/file_blobs_rails/generators/templates/file_blob.rb.erb