Module: TrackMe::InstanceMethods

Defined in:
lib/track_me.rb

Instance Method Summary collapse

Instance Method Details

#set_trackme_actionsObject



23
24
25
26
27
28
29
30
# File 'lib/track_me.rb', line 23

def set_trackme_actions
  @trackme_string, opts = self.class.trackme_actions[params[:action].to_sym]

  if opts && opts[:object]
    obj = instance_variable_get "@#{opts[:object]}"
    @trackme_object = obj.attributes.except('created_at', 'updated_at', 'delta') if obj
  end
end