Sha256: 9658dac86d1bc0c96da835a942345e2fbd0a736dbf280e6149c8b198816210bd

Contents?: true

Size: 198 Bytes

Versions: 4

Compression:

Stored size: 198 Bytes

Contents

class <%= file_name.classify %> < ActiveRecord::Base
  has_file_blob :<%= options[:attr_name] %>, allow_nil: <%= options[:allow_nil] %>, blob_model: <%= options[:blob_model].classify.inspect %>
end

Version data entries

4 entries across 4 versions & 1 rubygems

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