Sha256: fe811f31c1f4dfc02f929c7b8b727ecb13ded23182c644ad56ba2240f8befd7e

Contents?: true

Size: 330 Bytes

Versions: 35

Compression:

Stored size: 330 Bytes

Contents

require "rails/generators"

module Generators
  module Avo
    class ActionGenerator < Rails::Generators::NamedBase
      source_root File.expand_path("templates", __dir__)
      namespace "avo:action"

      def create_resource_file
        template "action.tt", "app/avo/actions/#{singular_name}.rb"
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
avo-1.9.0 lib/generators/avo/action_generator.rb
avo-1.8.4 lib/generators/avo/action_generator.rb
avo-1.8.3 lib/generators/avo/action_generator.rb
avo-1.8.2 lib/generators/avo/action_generator.rb
avo-1.8.1 lib/generators/avo/action_generator.rb
avo-1.8.0 lib/generators/avo/action_generator.rb
avo-1.7.3 lib/generators/avo/action_generator.rb
avo-1.7.3.pre.1 lib/generators/avo/action_generator.rb
avo-1.7.2 lib/generators/avo/action_generator.rb
avo-1.7.1 lib/generators/avo/action_generator.rb
avo-1.7.0 lib/generators/avo/action_generator.rb
avo-1.6.4.pre.1 lib/generators/avo/action_generator.rb
avo-1.6.3.pre.3 lib/generators/avo/action_generator.rb
avo-1.6.3.pre.2 lib/generators/avo/action_generator.rb
avo-1.6.3.pre.1 lib/generators/avo/action_generator.rb
avo-1.6.2.pre.1 lib/generators/avo/action_generator.rb
avo-1.6.1 lib/generators/avo/action_generator.rb
avo-1.6.0 lib/generators/avo/action_generator.rb
avo-1.5.5 lib/generators/avo/action_generator.rb
avo-1.5.4 lib/generators/avo/action_generator.rb