Vermonster / copycat

Copycat is a Rails engine that allows editing live website copy using existing i18n view helpers
MIT License
44 stars 19 forks source link

Sort out loading order #1

Closed steve9001 closed 12 years ago

steve9001 commented 12 years ago

Rails initialization invokes I18n.translate after the engine is loaded. This leads to AR query, which fails if the table doesn't exist, which is the case when the installation migration is running.

steve9001 commented 12 years ago

during lookup we catch the exception that is caused by this and suppress it if the table doesn't exist.

steve9001 commented 12 years ago

during lookup we catch the exception that is caused by this and suppress it if the table doesn't exist.