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

Fix issue with undefined method quoted_table_name for ActiveRecord::Reflection #100

Closed nancy-cai closed 5 years ago

nancy-cai commented 5 years ago

The instance method quoted_table_name of ActiveRecord::Reflection::AbstractReflection has been removed since Rails 5.2.0 thus causing this issue here https://github.com/JackDanger/permanent_records/issues/97.

I changed it to use the class method quoted_table_name of ActiveRecord::ModelSchema.