lib/generators/haml/widget_generator.rb in apotomo-1.1.0 vs lib/generators/haml/widget_generator.rb in apotomo-1.1.1
- old
+ new
@@ -1,20 +1,11 @@
-require 'generators/cells/base'
+require 'generators/haml/cell_generator'
+require 'generators/apotomo/widget_generator'
module Haml
module Generators
- class WidgetGenerator < ::Cells::Generators::Base
+ class WidgetGenerator < CellGenerator
+ include ::Apotomo::Generators::BasePathMethods
source_root File.expand_path('../../templates', __FILE__)
-
- def create_views
- for state in actions do
- @state = state
- @path = File.join('app/widgets', file_name, "#{state}.html.haml")
-
- template "view.haml", @path
- end
- end
end
end
end
-
-