Sha256: 7ea168318885c19b7d329b1876caa4e8753381fb408f7bd3f8a17a173697fdc8

Contents?: true

Size: 313 Bytes

Versions: 10

Compression:

Stored size: 313 Bytes

Contents

require "rails/generators"

module Ahoy
  module Generators
    module Clicks
      class MongoidGenerator < Rails::Generators::Base
        source_root File.join(__dir__, "templates")

        def copy_templates
          template "mongoid.rb", "app/models/ahoy/click.rb"
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ahoy_email-2.4.0 lib/generators/ahoy/clicks/mongoid_generator.rb
ahoy_email-2.3.1 lib/generators/ahoy/clicks/mongoid_generator.rb
ahoy_email-2.3.0 lib/generators/ahoy/clicks/mongoid_generator.rb
ahoy_email-2.2.0 lib/generators/ahoy/clicks/mongoid_generator.rb
ahoy_email-2.1.3 lib/generators/ahoy/clicks/mongoid_generator.rb
ahoy_email-2.1.2 lib/generators/ahoy/clicks/mongoid_generator.rb
ahoy_email-2.1.1 lib/generators/ahoy/clicks/mongoid_generator.rb
ahoy_email-2.1.0 lib/generators/ahoy/clicks/mongoid_generator.rb
ahoy_email-2.0.3 lib/generators/ahoy/clicks/mongoid_generator.rb
ahoy_email-2.0.2 lib/generators/ahoy/clicks/mongoid_generator.rb