Sha256: 3c74ecefd1c9106586ce1b5ad3c4c982dd114f63e1ec1de3dc757de9a5bfe52f

Contents?: true

Size: 1.64 KB

Versions: 4

Compression:

Stored size: 1.64 KB

Contents

# Example of a payload attributes
```
{
  'actor_type' => 'User'
  'actor_id' => "12"
  'action' => 'user.update'
  'payloads' => 
    [
        {
          :related_to_activity_as => 'primary',
          :record_type => 'User',
          :record_id => 7,
          :route => 'show_user',
          'attrs' => {
            :first_name => 
              'changed' => 
                {
                  'from' => 'Vo5qr2ZXdnUNvZlFPzPivVnZ4JJMHvftPKR9F5ZidDQ=\n',
                  'to' => 'c4849GlicNeNw/7arZBRu6BCAYNlc7bjfHfpPv4Ra1I=\n'
                }
            last_name => 'Vo9apehbkapd=\n',
            'age' => {
              'from' => 'Whybq9OToAIYjYlP2gbXaieKDXH5Ut/uXc+M9R1OAk8=\n',
              'to' => 'SUvxCLFBl3HUxqYihoj7VU3Ai/GK/ji5APJZNwbERqQ=\n'
            }
          }
        },
        {
          :related_to_activity_as => 'has_one' 
          :record_type => 'Demo::UserProfile',
          :record_id => 7,
          :route => 'show_user'
          :attrs => {,
            :sex =>
             'changed' => 
                {
                  'from' => 'aNY4G6dyaYyg7xiPwGMnGORsMvt8rzOKl7S+sEq1jYY=\n',
                  'to' => 'Pqo5vaojL1SV0DMLL5WQsuNjxcZY+Av/ckCbT00ZKUk=\n'
                },
            religion => 'christianity'
          }
        },
        {
          :related_to_activity_as => 'belongs_to,
          :changed => 
          :payload_attrs => {
            :from => {
              :state => 'current_association'
              :record_type => 'Demo::Address',
              :record_id => 7,
              :route => 'show_address'


            }
            :to => {

            }

          }
        }
    ]
}
```

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
loggable_activity-0.2.1c PAYLOAD_EXAMPLE.md
loggable_activity-0.2.1 PAYLOAD_EXAMPLE.md
loggable_activity-0.1.59 PAYLOAD_EXAMPLE.md
loggable_activity-0.1.58 PAYLOAD_EXAMPLE.md