Sha256: ec2911518af5a000aec9f8e895d26ba9d899a6b3d27d429ec74bbd94d13ee4ba

Contents?: true

Size: 312 Bytes

Versions: 4

Compression:

Stored size: 312 Bytes

Contents

module BeforeActions
  module Generators
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path('../templates', __FILE__)

      def generate_template
        copy_file "controller.rb", "lib/templates/rails/scaffold_controller/controller.rb"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
before_actions-2.0.0 lib/generators/before_actions/install_generator.rb
before_actions-1.0.3 lib/generators/before_actions/install_generator.rb
before_actions-1.0.2 lib/generators/before_actions/install_generator.rb
before_actions-1.0.0 lib/generators/before_actions/install_generator.rb