Sha256: 5b3dfa7cc8d503406dcd9a0861d882cd65b520bf544f838a199f828606a2f608

Contents?: true

Size: 636 Bytes

Versions: 7

Compression:

Stored size: 636 Bytes

Contents

require 'rails/generators'
require 'rails/generators/named_base'

module Cells
  module Generators
    class Base < ::Rails::Generators::NamedBase
      class_option :template_engine
      class_option :test_framework
      class_option :base_cell_class, :type => :string, :default => "Cell::Rails"
      class_option :base_cell_path

      argument :actions, :type => :array, :default => [], :banner => "action action"
      check_class_collision :suffix => "Cell"

    private
      def base_path
        path = (options[:base_cell_path] || 'app/cells').to_s
        File.join(path, class_path, file_name)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cells-3.11.3 lib/generators/cells/base.rb
cells-3.11.2 lib/generators/cells/base.rb
cells-3.11.1 lib/generators/cells/base.rb
cells-3.11.0 lib/generators/cells/base.rb
cells-3.10.1 lib/generators/cells/base.rb
cells-3.10.0 lib/generators/cells/base.rb
cells-3.9.1 lib/generators/cells/base.rb