Sha256: 260d3390b30e3a287c0bf82b8260866b2fca965689cf83f9cd125c9a4bc8fe76

Contents?: true

Size: 353 Bytes

Versions: 21

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

module Rails
  module Generators
    class InteractorGenerator < ::Rails::Generators::NamedBase
      source_root File.expand_path("../templates", __FILE__)

      def copy_interactor_file
        template "interactor.tt", File.join("app/interactors", class_path, "#{file_name}_interactor.rb")
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
lightrails-0.2.7 lib/generators/interactor_generator.rb
lightrails-0.2.6 lib/generators/interactor_generator.rb
lightrails-0.2.5 lib/generators/interactor_generator.rb
lightrails-0.2.4 lib/generators/interactor_generator.rb
lightrails-0.2.3 lib/generators/interactor_generator.rb
lightrails-0.2.2 lib/generators/interactor_generator.rb
lightrails-0.2.1 lib/generators/interactor_generator.rb
lightrails-0.2.0 lib/generators/interactor_generator.rb
lightrails-0.1.0.1 lib/generators/interactor_generator.rb
lightrails-0.1.0 lib/generators/interactor_generator.rb
lightrails-0.0.17.3 lib/generators/interactor_generator.rb
lightrails-0.0.17.2 lib/generators/interactor_generator.rb
lightrails-0.0.17.1 lib/generators/interactor_generator.rb
lightrails-0.0.17 lib/generators/interactor_generator.rb
lightrails-0.0.16 lib/generators/interactor_generator.rb
lightrails-0.0.15 lib/generators/interactor_generator.rb
lightrails-0.0.14 lib/generators/interactor_generator.rb
lightrails-0.0.13 lib/generators/interactor_generator.rb
lightrails-0.0.12 lib/generators/interactor_generator.rb
lightrails-0.0.11 lib/generators/interactor_generator.rb