Skip to content

Commit

Permalink
Documenting the time_formats Avram config option. Fixes luckyframewor…
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink authored Jul 19, 2021
1 parent 1fe3d27 commit 2cdb1b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/web_app_skeleton/config/database.cr.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ Avram.configure do |settings|
# In production, allow lazy loading (N+1).
# In development and test, raise an error if you forget to preload associations
settings.lazy_load_enabled = LuckyEnv.production?

# Always parse `Time` values with these specific formats.
# Used for both database values, and datetime input fields.
# settings.time_formats << "%F"
end

0 comments on commit 2cdb1b3

Please sign in to comment.