Sha256: ad32a68264ddcdcf91bc94c365119539d8703a88d7cf24f3b708f4007319ce51

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

require 'action_controller'

class MetalController < ActionController::Metal
  include Rack::Tracker::Controller
  include AbstractController::Rendering
  include ActionView::Layouts
  append_view_path File.join(File.dirname(__FILE__), '../fixtures/views')
  layout 'application'

  def index
    tracker do
      track_all_the_things like: 'no-one-else'
      another_handler likes: 'you'
    end
    render "metal/index"
  end

  def facebook
    tracker do
      facebook 'conversion-event', { value: '1', currency: 'EUR' }
    end
    render "metal/index"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-tracker-0.0.3 spec/support/metal_controller.rb