lib/transponder.rb in transponder-0.9.3 vs lib/transponder.rb in transponder-0.9.4
- old
+ new
@@ -14,13 +14,9 @@
require 'transponder/version'
require 'transponder/transmission'
module Transponder
module ViewHelpers
- def xms_module_name
- params[:controller].include?('/') ? params[:controller].split('/')[0] : nil
- end
-
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