Sha256: acf9d7b4a305041c9467a2aa8127afdbb64f2a4058bb78d3cf3c5182be654217

Contents?: true

Size: 399 Bytes

Versions: 13

Compression:

Stored size: 399 Bytes

Contents

require 'rails/generators'

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

      desc "add Google Analytics to a Rails application"

      def add_google_analytics
        copy_file 'google_analytics.js.coffee', 'app/assets/javascripts/google_analytics.js.coffee'
      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/google_generator.rb
rails_apps_pages-0.6.6 lib/generators/analytics/google_generator.rb
rails_apps_pages-0.6.5 lib/generators/analytics/google_generator.rb
rails_apps_pages-0.6.4 lib/generators/analytics/google_generator.rb
rails_apps_pages-0.6.3 lib/generators/analytics/google_generator.rb
rails_apps_pages-0.6.2 lib/generators/analytics/google_generator.rb
rails_apps_pages-0.6.0 lib/generators/analytics/google_generator.rb
rails_apps_pages-0.5.16 lib/generators/analytics/google_generator.rb
rails_apps_pages-0.5.15 lib/generators/analytics/google_generator.rb
rails_apps_pages-0.5.14 lib/generators/analytics/google_generator.rb
rails_apps_pages-0.5.13 lib/generators/analytics/google_generator.rb
rails_apps_pages-0.5.12 lib/generators/analytics/google_generator.rb
rails_apps_pages-0.5.11 lib/generators/analytics/google_generator.rb