Sha256: 469309e5dd57d64f39fbc3956b3b833d7fed0a7acf605af822e84456f7f47ade

Contents?: true

Size: 390 Bytes

Versions: 5

Compression:

Stored size: 390 Bytes

Contents

require "rails/generators"

module Ahoy
  module Stores
    module Generators
      class ActiveRecordGenerator < Rails::Generators::Base
        class_option :database, type: :string, aliases: "-d"

        def boom
          invoke "ahoy:stores:active_record_visits", nil, options
          invoke "ahoy:stores:active_record_events", nil, options
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ahoy_matey-1.1.1 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.1.0 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.0.2 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.0.1 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.0.0 lib/generators/ahoy/stores/active_record_generator.rb