]> cat aescling's git repositories - mastodon.git/commit
Fix WebPush (regression from #4524) (#4778)
authorunarist <m.unarist@gmail.com>
Sat, 2 Sep 2017 14:50:42 +0000 (23:50 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 2 Sep 2017 14:50:42 +0000 (16:50 +0200)
commitbfa7f9ebf22581a387606716fe3f86e85e1c9db5
treeaecbbc735b67607924499ae717d1a753e7f2f79d
parent8cc1ed3c556830092601425881384f8667dec437
Fix WebPush (regression from #4524) (#4778)

* Fix NoMethodError in Web::PushSubscription

```
undefined method `site_contact_email' for #<Class:0x00005976d13c40>

/usr/local/bundle/gems/activerecord-5.1.3/lib/active_record/dynamic_matchers.rb:22:in `method_missing'
/usr/local/bundle/gems/attr_encrypted-3.0.3/lib/attr_encrypted.rb:295:in `method_missing'
/usr/local/bundle/gems/attr_encrypted-3.0.3/lib/attr_encrypted/adapters/active_record.rb:129:in `method_missing_with_attr_encrypted'
/mastodon/app/models/web/push_subscription.rb:53:in `push_payload'
```

* Specify serializer in Web::NotificationSerializer
app/models/web/push_subscription.rb
app/serializers/web/notification_serializer.rb