Sha256: 5f1b309f4537d3e011353844f3c0666632ad4d791059920910648fa65d4ea3e8

Contents?: true

Size: 341 Bytes

Versions: 16

Compression:

Stored size: 341 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

16 entries across 16 versions & 1 rubygems

Version Path
ahoy_matey-1.6.1 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.6.0 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.5.5 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.5.4 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.5.3 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.5.2 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.5.1 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.5.0 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.4.2 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.4.1 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.4.0 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.3.1 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.3.0 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.2.2 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.2.1 lib/generators/ahoy/stores/custom_generator.rb
ahoy_matey-1.2.0 lib/generators/ahoy/stores/custom_generator.rb