plots2 icon indicating copy to clipboard operation
plots2 copied to clipboard

Repetitive code in Users controller (lines 129-144)?

Open seafr opened this issue 8 years ago • 6 comments

The code on lines 129-144 in the Users controller seems to be repetitive. Can I move it to a (private) method? Please note that I am new to this.

seafr avatar Dec 29 '17 13:12 seafr

That'd be great, thanks! Perhaps even in /app/models/user.rb?

jywarren avatar Dec 29 '17 13:12 jywarren

OK, in the model then.

seafr avatar Dec 29 '17 14:12 seafr

Awesome, thanks for your help!

On Dec 29, 2017 9:07 AM, "Sea" [email protected] wrote:

OK, in the model then.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1908#issuecomment-354450230, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ98M9b5PQ_jJavLroV2TzLwymurDks5tFPIUgaJpZM4RPGfK .

jywarren avatar Dec 29 '17 14:12 jywarren

Hi, just checking if you've gotten stuck on this at all, or if I could help in any way? Thanks!

jywarren avatar Jan 03 '18 20:01 jywarren

Hi @jywarren, plz check PR #1909 and get back to me. Unfortunately, it seems there is some problem with it :( The Travis CI build did not succeed.

seafr avatar Jan 04 '18 18:01 seafr

Merged the fix in #1909 -- thanks!!!

jywarren avatar Jan 04 '18 18:01 jywarren