class ActionTracker::Workers::Inline
Attributes
form[R]
Public Class Methods
new(form)
click to toggle source
# File lib/action_tracker/workers/inline.rb, line 8 def initialize(form) @form = form end
Public Instance Methods
perform()
click to toggle source
# File lib/action_tracker/workers/inline.rb, line 12 def perform connection.post form.collection_path, body: form.present_attributes end
Private Instance Methods
connection()
click to toggle source
# File lib/action_tracker/workers/inline.rb, line 18 def connection @connection ||= ActionTracker::Connection.new end