Skip to content

Commit

Permalink
Merge pull request #473 from iaebots/update-version-in-translations
Browse files Browse the repository at this point in the history
Update version in translations
  • Loading branch information
IA-e committed Oct 22, 2021
2 parents bbbb92e + e83b6e1 commit 7ae5e7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions config/initializers/shrine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@
# production storage as Amazon S3 bucket
Shrine.storages = {
cache: Shrine::Storage::FileSystem.new('public', prefix: 'uploads/cache'), # local cache
# cache: Shrine::Storage::S3.new(prefix: 'cache', **s3_options),
store: Shrine::Storage::S3.new(**s3_options)
# store: Shrine::Storage::FileSystem.new('public', prefix: 'uploads') # to be used when migrating from local uploads to s3 bucket
}
end

cache = Shrine.storages[:cache]
cache.clear! { |path| path.mtime < Time.now - 24 * 60 * 60 } # delete files older than 1 day
cache.clear! { |path| path.mtime < Time.now - 60 * 60 } # delete cached files older than 1 hour

# Shrine.plugin :mirroring, mirror: { store: :s3 }
Shrine.plugin :presign_endpoint
Shrine.plugin :pretty_location # provides a good default hierarchy
Shrine.plugin :activerecord # AR integration
Expand Down
2 changes: 1 addition & 1 deletion config/locales/views/layouts/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ en:
contributors: "our contributors"
license: "Code licensed"
mit: "MIT"
version: "Version 1.2.1.1"
version: "Version 1.2.1.2"
links:
links: "Links"
home: "Home"
Expand Down
2 changes: 1 addition & 1 deletion config/locales/views/layouts/pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pt:
contributors: "nossos colaboradores"
license: "Licença do código"
mit: "MIT"
version: "Versão 1.2.1.1"
version: "Versão 1.2.1.2"
links:
links: "Links"
home: "Home"
Expand Down

0 comments on commit 7ae5e7e

Please sign in to comment.