Here’s an odd issue:
- One of my ActiveRecord models uses
attr_protected attr_protectedmust connect to the database (surprise! gotcha!)- On Heroku Cedar, the database is not available during slug compilation.
Workaround:
- Use
attr_accessibleinstead - Other people have used this workaround
Is there a better solution? Thanks.
Do you need access to your application models when precompiling? If not then
Is supposed to do the trick