rails-engine / audit-log

📑 Create audit logs into the database for user behaviors, including a web UI to query logs.
MIT License
168 stars 26 forks source link

Avoid error when using in api only mode #5

Closed pzgz closed 1 year ago

pzgz commented 3 years ago

When using in API only mode, running rails g audit_log:install will result in method_missing': undefined methodassets' for #<Rails::Application:...`, there might be a better way to detect api only mode application, but for now, simply check the assets attribute existence

liijunwei commented 2 years ago

When using in API only mode, running rails g audit_log:install will result in method_missing': undefined methodassets' for #<Rails::Application:...`, there might be a better way to detect api only mode application, but for now, simply check the assets attribute existence

Worked. Thanks