Change ActiveRecord check to be more specific
Change ActiveRecord check to be more specific

Originally the code was like this but the check was made a lot
less specific in a large code change.

https://github.com/awesome-print/awesome_print/commit/dfbebd488769738ac854adf37c930ad1d31bb94f#diff-e567c486212ebaee39cf4091c38a4d84L17

awesome-print/awesome_print