lib/generators/pbw/area/area_generator.rb in pbw-0.0.3 vs lib/generators/pbw/area/area_generator.rb in pbw-0.0.4
- old
+ new
@@ -1,3 +1,5 @@
-class Pbw::AreaGenerator < Rails::Generators::NamedBase
- source_root File.expand_path('../templates', __FILE__)
+require 'generators/pbw/scaffold_generator'
+
+class Pbw::AreaGenerator < Pbw::Generators::ScaffoldGenerator
+ source_root File.expand_path("../templates", __FILE__)
end