Sha256: 9cc8c3723341b6d5d08627f2b1e9eff9b005ce839a4f9807cf87c1b29f202551

Contents?: true

Size: 300 Bytes

Versions: 21

Compression:

Stored size: 300 Bytes

Contents

if defined?(Mongoid::Document)
  require 'dragonfly'

  app = Dragonfly[:images]

  # Configure to use ImageMagick, Rails defaults
  app.configure_with(:imagemagick)

  # Allow all mongoid models to use the macro 'image_accessor'
  app.define_macro_on_include(Mongoid::Document, :image_accessor)
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
rails_admin-0.6.1 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.6.0 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.5.0 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.4.9 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.4.8 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.4.7 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.4.6 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.4.5 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.4.4 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-lbgraham-0.4.2 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.4.3 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.4.2 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.4.1 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.4.0 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.3.0 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.2.0 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.1.2 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.1.1 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.1.0 spec/dummy_app/config/initializers/dragonfly.rb
rails_admin-0.0.5 spec/dummy_app/config/initializers/dragonfly.rb