# Plugin working locally But not in live

**URL:** <https://meta.discourse.org/t/plugin-working-locally-but-not-in-live/60316>\
**Category:** Development\
**Created:** [02.Апрель.2017 11:35:57 UTC](https://meta.discourse.org/t/plugin-working-locally-but-not-in-live/60316 "2017-04-02T11:35:57Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [17.Октябрь.2018 14:35:44 UTC](https://meta.discourse.org/t/plugin-working-locally-but-not-in-live/60316/9 "2018-10-17T14:35:44Z")

</div>

I just spent a long time debugging an issue caused by this. I was doing

```plaintext
add_to_serializer(:admin_user, :somefield)...

```

which worked fine in development, but not in production. Changing it to `:admin_detailed_user` fixed the problem (admin\_detailed\_user inherits from admin\_user).

It would be good if we can either fix this, or at least add a warning. Differences between dev/prod are painful!

---

_[View the full topic](https://meta.discourse.org/t/plugin-working-locally-but-not-in-live/60316)._
