Class: MailEngine::CopyResources

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/mail_engine/generators/copy_resources.rb

Instance Method Summary collapse

Instance Method Details

#copy_resourcesObject



6
7
8
9
10
# File 'lib/mail_engine/generators/copy_resources.rb', line 6

def copy_resources
  from = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..", "public"))
  to = File.expand_path(File.join(Rails.root, "public"))
  directory from, to
end