Sha256: 045460d50f2132db70b81f7009978923119fcb5203c98d478c8258eb755e623d

Contents?: true

Size: 391 Bytes

Versions: 5

Compression:

Stored size: 391 Bytes

Contents

require 'generators/cells/base'

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

      def create_cell_file
        template 'cell.rb', File.join('app/cells', class_path, "#{file_name}_cell.rb")
      end

      hook_for(:template_engine)
      hook_for(:test_framework)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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