Sha256: 58bb4153bd8b1738c15f5e3936456dde6ddae96c48c15fef339479ea59fab4f8

Contents?: true

Size: 583 Bytes

Versions: 5

Compression:

Stored size: 583 Bytes

Contents

require 'generators/cells/base'

module Cells
  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)

      def say_deprecated
        say "====> This generator is now DEPRECATED. <====", :red
        say "Please use:"
        say "  rails g cell #{class_name} #{actions.join(' ')}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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