Sha256: fd7c600aa2a177aab4085d7ab078ad1cfac17a1343b229d62eb4bf6511709245

Contents?: true

Size: 370 Bytes

Versions: 13

Compression:

Stored size: 370 Bytes

Contents

require 'rails/generators'

module Analytics
  module Generators
    class SegmentioGenerator < ::Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)

      desc "add Segment.io tracking to a Rails application"

      def add_segmentio
        copy_file 'segmentio.js', 'app/assets/javascripts/segmentio.js'
      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rails_apps_pages-0.6.7 lib/generators/analytics/segmentio_generator.rb
rails_apps_pages-0.6.6 lib/generators/analytics/segmentio_generator.rb
rails_apps_pages-0.6.5 lib/generators/analytics/segmentio_generator.rb
rails_apps_pages-0.6.4 lib/generators/analytics/segmentio_generator.rb
rails_apps_pages-0.6.3 lib/generators/analytics/segmentio_generator.rb
rails_apps_pages-0.6.2 lib/generators/analytics/segmentio_generator.rb
rails_apps_pages-0.6.0 lib/generators/analytics/segmentio_generator.rb
rails_apps_pages-0.5.16 lib/generators/analytics/segmentio_generator.rb
rails_apps_pages-0.5.15 lib/generators/analytics/segmentio_generator.rb
rails_apps_pages-0.5.14 lib/generators/analytics/segmentio_generator.rb
rails_apps_pages-0.5.13 lib/generators/analytics/segmentio_generator.rb
rails_apps_pages-0.5.12 lib/generators/analytics/segmentio_generator.rb
rails_apps_pages-0.5.11 lib/generators/analytics/segmentio_generator.rb