Sha256: fbd45fd0bff77a31e09126a5e3b93f7dfac0c2a90b646a822a57b0bc5279d998
Contents?: true
Size: 525 Bytes
Versions: 2
Compression:
Stored size: 525 Bytes
Contents
module LolitaFileUpload module Generators class InstallGenerator < Rails::Generators::Base include Lolita::Generators::FileHelper source_root File.expand_path("../templates", __FILE__) desc "Copy assets and create migrations. " def copy_assets generate("lolita_file_upload:assets") end def copy_migration copy_file "migration.rb", "db/migrate/#{Time.now.strftime("%Y%m%d%H%M%S")}_create_lolita_upload_files.rb" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lolita-file-upload-0.2.1 | lib/generators/lolita_file_upload/install_generator.rb |
lolita-file-upload-0.2.0 | lib/generators/lolita_file_upload/install_generator.rb |