Sha256: 2571e00035409ce1b2a5efdb05091acbf453a9562b874cb956ddb82ba78c16e0

Contents?: true

Size: 411 Bytes

Versions: 5

Compression:

Stored size: 411 Bytes

Contents

require 'generators/cells/base'

module Erb
  module Generators
    class CellGenerator < ::Cells::Generators::Base
      source_root File.expand_path('../../templates', __FILE__)

      def create_views
        for state in actions do
          @state = state
          @path = File.join('app/cells', file_name, "#{state}.html.erb")
          template "view.erb", @path
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cells-3.5.4 lib/generators/erb/cell_generator.rb
cells-3.5.2 lib/generators/erb/cell_generator.rb
cells-3.5.1 lib/generators/erb/cell_generator.rb
cells-3.5.0 lib/generators/erb/cell_generator.rb
cells-3.5.0.beta2 lib/generators/erb/cell_generator.rb