Sha256: 5fc3e1fbdb48617d43057b2974a46d934b7734919f25591027f7910f493bef92

Contents?: true

Size: 358 Bytes

Versions: 2

Compression:

Stored size: 358 Bytes

Contents

module RailsUploads
  class Railtie < Rails::Railtie

    config.uploads = ActiveSupport::OrderedOptions.new
    config.uploads.presets = {}
    config.uploads.default_presets = []
    config.uploads.base_url = ''

    initializer 'rails_uploads' do
      ::ActiveRecord::Base.send :extend, RailsUploads::ActiveRecord::Base::NonAttachable
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_uploads-0.1.5 lib/rails_uploads/railtie.rb
rails_uploads-0.1.4 lib/rails_uploads/railtie.rb