Sha256: c66c02825cdfb7ad3d62b810e737e1ed67b6f4691e934390c5bb3ae6c9a21cf5
Contents?: true
Size: 461 Bytes
Versions: 16
Compression:
Stored size: 461 Bytes
Contents
require "rails/generators" module Ahoy module Stores module Generators class MongoidEventsGenerator < Rails::Generators::Base source_root File.expand_path("../templates", __FILE__) def generate_model template "mongoid_event_model.rb", "app/models/ahoy/event.rb" end def create_initializer template "mongoid_initializer.rb", "config/initializers/ahoy.rb" end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems