Sha256: f52ba93a02e6dc6456f7bca6c4abd6a07ea99aec1cf42ed4bd95bd004e991f1e

Contents?: true

Size: 389 Bytes

Versions: 16

Compression:

Stored size: 389 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

16 entries across 16 versions & 1 rubygems

Version Path
ahoy_matey-1.6.1 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.6.0 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.5.5 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.5.4 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.5.3 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.5.2 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.5.1 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.5.0 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.4.2 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.4.1 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.4.0 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.3.1 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.3.0 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.2.2 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.2.1 lib/generators/ahoy/stores/active_record_generator.rb
ahoy_matey-1.2.0 lib/generators/ahoy/stores/active_record_generator.rb