Sha256: 0d41c8ff6dfaf64111b6699c1b651d40f44b23888017a8134817b72ee37dfe1a

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

require File.expand_path('../boot', __FILE__)

require 'rails/all'

Bundler.require(*Rails.groups)
require 'attachs'

module Dummy
  class Application < Rails::Application
    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.

    # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
    # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
    # config.time_zone = 'Central Time (US & Canada)'

    # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
    # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
    # config.i18n.default_locale = :de
    I18n.enforce_available_locales = false    

    config.attachs.default_presets = :small
    config.attachs.presets = {
      small: { method: :fit, width: 120, height: 120 },
      big: { method: :fill, width: 1024, height: 768 }
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
attachs-0.3.5 test/dummy/config/application.rb