lib/generators/lolita_menu/install_generator.rb in lolita-menu-0.0.15 vs lib/generators/lolita_menu/install_generator.rb in lolita-menu-0.1.0
- old
+ new
@@ -4,24 +4,20 @@
module Generators
class InstallGenerator < Rails::Generators::Base
include Rails::Generators::Migration
source_root File.expand_path("../templates", __FILE__)
- desc "Copy assets and create migrations. "
+ desc "Create migrations. "
def self.next_migration_number(dirname)
if ActiveRecord::Base.timestamped_migrations
Time.now.utc.strftime("%Y%m%d%H%M%S")
else
"%.3d" % (current_migration_number(dirname) + 1)
end
end
- def copy_assets
- generate("lolita_menu:assets")
- end
-
def create_menu_migrations
begin
migration_template "migrations/create_menus.rb", "db/migrate/create_lolita_menus.rb"
migration_template "migrations/create_menu_items.rb", "db/migrate/create_lolita_menu_items.rb"
rescue Exception => e
@@ -33,6 +29,6 @@
template "lolita-menu-urls.rb", "config/lolita-menu-urls.rb"
end
end
end
-end
\ No newline at end of file
+end