class FileBlobs::BlobOwnerGenerator
Public Instance Methods
create_file_blob_model()
click to toggle source
# File lib/file_blobs_rails/generators/blob_owner_generator.rb, line 15 def create_file_blob_model # Set up the template environment. template 'blob_owner.rb.erb', File.join('app', 'models', "#{file_name}.rb") template 'blob_owner_test.rb.erb', File.join('test', 'models', "#{file_name}_test.rb") template '002_create_blob_owners.rb.erb', File.join('db', 'migrate', "20161029000002_create_#{file_name.tableize}.rb") template 'blob_owners.yml.erb', File.join('test', 'fixtures', "#{file_name.tableize}.yml") end