Sha256: c5e549e1062d2fde8c46f4042e1f035113887aa2aece46646b23fd0f6a76b61f

Contents?: true

Size: 457 Bytes

Versions: 2

Compression:

Stored size: 457 Bytes

Contents

require "rails/generators"

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

        def generate_model
          template "mongoid_visit_model.rb", "app/models/visit.rb"
        end

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

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ahoy_matey-1.0.1 lib/generators/ahoy/stores/mongoid_visits_generator.rb
ahoy_matey-1.0.0 lib/generators/ahoy/stores/mongoid_visits_generator.rb