lib/generators/fullstack/ckeditor/install_generator.rb in fullstack-ckeditor-0.1.1 vs lib/generators/fullstack/ckeditor/install_generator.rb in fullstack-ckeditor-0.1.2
- old
+ new
@@ -1,11 +1,15 @@
module Fullstack
module Ckeditor
- class InstallGenerator < Rails::Generators::NamedBase
+ class InstallGenerator < Rails::Generators::Base
source_root File.expand_path('../templates', __FILE__)
def install_assets
directory "ckeditor", Rails.root.join("public", "ckeditor")
+ end
+
+ def install_migration
+ generate "migration:from Ckeditor::Asset Ckeditor::AttachmentFile Ckeditor::Picture"
end
end
end
end