JackDanger / permanent_records

Rails Plugin - soft-delete your ActiveRecord records. It's like an explicit version of ActsAsParanoid
https://jdanger.com
MIT License
272 stars 64 forks source link

Not trigger ActiveRecord loading on requiring gem #68

Closed gsmetal closed 8 years ago

gsmetal commented 8 years ago

When this gem required ActiveRecord::Base triggered to load and make connections to database. This should not be due to (for example) failing assets:precomplie in Heroku (https://devcenter.heroku.com/articles/rails-asset-pipeline#troubleshooting), where build phase and run phase are separated and database is not available on build phase.

JackDanger commented 8 years ago

Great work, @gsmetal!

JackDanger commented 8 years ago

@gsmetal I've added you to the gemspec as a contributor and I've published a new version of the gem. Thanks for your contribution!