You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I tried implement acts_as_archive with pgsql and I found a possible problem in mover:
In lines 130 and 131 in mover.rb you gsub table names in conditions string with 't' and 'f', but if the tables are named e.g. articles and archived_articles, you'll get 'archived_t' instead of 'f'. This could be solved with look behind regex, unfortunately it's not supported until ruby 1.9.
I used these gsub blocks to get the correct result... not sure if they are entirely correct or well written:
Hello,
I tried implement acts_as_archive with pgsql and I found a possible problem in mover:
In lines 130 and 131 in mover.rb you gsub table names in conditions string with 't' and 'f', but if the tables are named e.g. articles and archived_articles, you'll get 'archived_t' instead of 'f'. This could be solved with look behind regex, unfortunately it's not supported until ruby 1.9.
I used these gsub blocks to get the correct result... not sure if they are entirely correct or well written:
The text was updated successfully, but these errors were encountered: