lib/generators/erb/widget_generator.rb in apotomo-1.1.0 vs lib/generators/erb/widget_generator.rb in apotomo-1.1.1

- old
+ new

@@ -1,17 +1,11 @@ -require 'generators/cells/base' +require 'generators/erb/cell_generator' +require 'generators/apotomo/widget_generator' module Erb 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.erb") - template "view.erb", @path - end - end end end end