Vermonster / copycat

Copycat is a Rails engine that allows editing live website copy using existing i18n view helpers
MIT License
44 stars 19 forks source link

Getting error when loading /copycat_translations #24

Open wangfowen opened 6 years ago

wangfowen commented 6 years ago

Couldn't find all CopycatTranslations with 'id': (all, {:select=>"distinct locale"}) (found 0 results, but was looking for 2)

Looks to be because of the line CopycatTranslation.find(:all, select: 'distinct locale'). I think it may not be supported in latest Rails maybe? CopycatTranslation.all.select('distinct locale').map(&:locale) works