Sha256: ea52f992c805084e76ab49d02503f13c2e83fd99cc07c34d9d294acf2815a000

Contents?: true

Size: 412 Bytes

Versions: 3

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true

require "rails/generators"

module TinyFilter
  module Generators
    class InstallGenerator < ::Rails::Generators::Base
      source_root File.expand_path("templates", __dir__)

      desc "This generator creates an application filter"

      def copy_application_filter
        template "application_filter.rb.tt", "app/filters/application_filter.rb"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tiny_filter-0.3.1 lib/generators/tiny_filter/install/install_generator.rb
tiny_filter-0.3.0 lib/generators/tiny_filter/install/install_generator.rb
tiny_filter-0.2.1 lib/generators/tiny_filter/install/install_generator.rb