Fae Initializer

March 21, 2017 ยท View on GitHub

Fae's default config can be overwritten in a config/initializers/fae.rb file.

keytypedefaultdescription
devise_secret_keystringunique Devise hash, generated on rails g fae:install
devise_mailer_senderstring"change-me@example.com"This email address will get passed to Devise and used as the from address in the password reset emails.
dashboard_exclusionsarray[]The dashboard will show all objects with recent activity.
max_image_upload_sizeinteger2This will set a file size limit on image uploads in MBs.
max_file_upload_sizeinteger5This will set a file size limit on file uploads in MBs.
languageshash{}This hash sets the supported languages for the multiple language toggle feature.
recreate_versionsbooleanfalseTriggers Fae::Image to recreate Carrierwave versions after save. This is helpful when you have conditional versions that rely on attributes of Fae::Image by making sure they're saved before versions are created.
track_changesbooleantrueThis is the global toggle for the change tracker.
tracker_history_lengthinteger15This defines how many changes per object are kept in the DB.
disabled_environmentsarray[]This option will disable Fae complete when the app is running on one of the defined environments
per_pageinteger25Sets the default number of items shown in paginated lists
use_cachebooleanfalseDetermines whether or not Fae will utilize cache internally. See docs