# Resurrecting a plugin

**URL:** https://meta.discourse.org/t/resurrecting-a-plugin/95056
**Category:** Development
**Created:** [August 18, 2018, 2:57pm UTC](https://meta.discourse.org/t/resurrecting-a-plugin/95056 "2018-08-18T14:57:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![timmch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timmch/32/109107_2.png) [@timmch](https://meta.discourse.org/u/timmch)
#### Post date: [August 18, 2018, 2:57pm UTC](https://meta.discourse.org/t/resurrecting-a-plugin/95056/1 "2018-08-18T14:57:55Z")

</div>

With the intention of having a plugin that allows users to rate each other, I am trying to resurrect [this plugin](https://github.com/JafethDC/discourse-user-feedback) that hasn’t been maintained for over a year. It seems like there are some parts of the code that were designed for an older version of ruby and, of course, discourse.

I am getting this error:

> uninitialized constant UserAction::UserActionRow  
> plugins/discourse-user-feedback/app/models/user\_action.rb, line 59

> <https://github.com/JafethDC/discourse-user-feedback/blob/master/app/models/user_action.rb>

Line 59 is

> builder.map\_exec(UserAction::UserActionRow)

It seems to me that User Action Row is a deprecated class used with an [older version of ruby](https://www.rubydoc.info/github/discourse/discourse/UserAction/UserActionRow).

I have tried removing the UserActionRow piece, like so ⏬

> builder.map\_exec(UserAction)

This results in another error

> undefined method `title=’ for #UserAction:0x000055deae7bde68

Can you help me by shedding light on how I might resolve this error?

---

<div class="post-metadata">

### Author: ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)
#### Post date: [August 18, 2018, 9:23pm UTC](https://meta.discourse.org/t/resurrecting-a-plugin/95056/2 "2018-08-18T21:23:26Z")

</div>

As per [this commit](https://github.com/discourse/discourse/commit/cb824a6b338b32216baef9021fe508a290e99bbe#diff-ecfa718862bff1aba85d97578f37125dL252) you should use `.query` instead of `.map_exec(UserActionRow)`.

---

<div class="post-metadata">

### Author: ![timmch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timmch/32/109107_2.png) [@timmch](https://meta.discourse.org/u/timmch)
#### Post date: [August 20, 2018, 2:40pm UTC](https://meta.discourse.org/t/resurrecting-a-plugin/95056/3 "2018-08-20T14:40:20Z")

</div>

@vinothkannans – Thanks for the prompt and insightful reply! Its just what I needed.
