Sha256: 230595b9c425964a4a22e5eaa306c7dfd80d167ceb27972f7aedc6cab493f0bd

Contents?: true

Size: 342 Bytes

Versions: 5

Compression:

Stored size: 342 Bytes

Contents

require "rails/generators"

module Ahoy
  module Stores
    module Generators
      class CustomGenerator < Rails::Generators::Base
        source_root File.expand_path("../templates", __FILE__)

        def create_initializer
          template "custom_initializer.rb", "config/initializers/ahoy.rb"
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ahoy_matey-1.1.1 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.1.0 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.0.2 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.0.1 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.0.0 lib/generators/ahoy/stores/custom_generator.rb