Sha256: 896e86f248a02936a01d7b4fe47c984306404abed479bab83517091ca1919447

Contents?: true

Size: 226 Bytes

Versions: 23

Compression:

Stored size: 226 Bytes

Contents

# Set default time-zone
Time.zone_default = Time.find_zone!('UTC')

# Add default I18n paths and set default locale
I18n.load_path += Dir[Grape::App.root.join('config', 'locales', '*.{rb,yml}').to_s]
I18n.default_locale = :en

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
grape-app-0.4.2 lib/grape/app/initializers/pre.rb
grape-app-0.4.1 lib/grape/app/initializers/pre.rb
grape-app-0.4.0 lib/grape/app/initializers/pre.rb