13
14
15
16
17
18
19
|
# File 'lib/generators/active_fedora/model/model_generator.rb', line 13
def install
template('model.rb.erb', ::File.join('app', directory, "#{file_name}.rb"))
template('model_spec.rb.erb', ::File.join('spec', directory, "#{file_name}_spec.rb"))
return unless options[:datastream]
template('datastream.rb.erb', ::File.join('app', datastream_directory, "#{file_name}_metadata.rb"))
template('datastream_spec.rb.erb', ::File.join('spec', datastream_directory, "#{file_name}_metadata_spec.rb"))
end
|