Sha256: c8481852fccd332772fb83b0fd72380a888d3fa988d7d6eedd1a3271254b7f68
Contents?: true
Size: 590 Bytes
Versions: 6
Compression:
Stored size: 590 Bytes
Contents
require "rails/generators" module Ahoy module Generators class MongoidGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def copy_templates template "database_store_initializer.rb", "config/initializers/ahoy.rb" template "mongoid_visit_model.rb", "app/models/ahoy/visit.rb" template "mongoid_event_model.rb", "app/models/ahoy/event.rb" puts "\nAlmost set! Last, run:\n\n rake db:mongoid:create_indexes" end def rails5? Rails::VERSION::MAJOR >= 5 end end end end
Version data entries
6 entries across 6 versions & 1 rubygems