Sha256: d3b5681336db2318eed95319b4b5817fdac87f8c3381a4ff1462c9959156085d
Contents?: true
Size: 272 Bytes
Versions: 3
Compression:
Stored size: 272 Bytes
Contents
module Interactor class Generator < ::Rails::Generators::NamedBase def self.source_root File.expand_path("../templates", __FILE__) end def generate template "#{self.class.generator_name}.erb", "app/interactors/#{file_name}.rb" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
interactor-rails-2.0.0 | lib/generators/interactor.rb |
interactor-rails-1.0.1 | lib/generators/interactor.rb |
interactor-rails-1.0.0 | lib/generators/interactor.rb |