Sha256: 513656774ed255e62ebd5d5042c881e2863f125d845f3f7070a1d2ef15fcf03d

Contents?: true

Size: 604 Bytes

Versions: 4

Compression:

Stored size: 604 Bytes

Contents

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

module Trailblazer
  module Generators
    class Cell < ::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 => [:show], :banner => "action action"

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cells-3.11.3 lib/generators/trailblazer/base.rb
cells-3.11.2 lib/generators/trailblazer/base.rb
cells-3.11.1 lib/generators/trailblazer/base.rb
cells-3.11.0 lib/generators/trailblazer/base.rb