Sha256: 2450f8cc52d093381b76941e41ff65e8a7d117c8c8f8e0d571540628001d1b31

Contents?: true

Size: 739 Bytes

Versions: 8

Compression:

Stored size: 739 Bytes

Contents

require 'rails'
require 'active_support'
require 'active_support/dependencies'
require 'active_support/concern'
require 'active_support/log_subscriber'

if ::Rails.version.to_f < 4
  require 'action_view/asset_paths'
end
require 'action_view/helpers' 
require 'action_view/context'
require 'action_view/base'

require 'transponder/version'
require 'transponder/transmission'

module Transponder
  module ViewHelpers
    def xms_event(module_name: nil, action: nil)
      _module = module_name || xms_module_name || 'application'
      _action = action || action_name
      "ujs:#{_module}:#{controller_name}:#{_action}"
    end
  end

  class Engine < ::Rails::Engine
    ActionView::Base.send :include, Transponder::ViewHelpers
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
transponder-2.0.0 lib/transponder.rb
transponder-1.0.0 lib/transponder.rb
transponder-0.10.4 lib/transponder.rb
transponder-0.10.2 lib/transponder.rb
transponder-0.10.1 lib/transponder.rb
transponder-0.9.6 lib/transponder.rb
transponder-0.9.5 lib/transponder.rb
transponder-0.9.4 lib/transponder.rb