Sha256: b4aff5988f68412beba8433448a5fc6b649b5e01ed4eb1158e53ca331e2ef889

Contents?: true

Size: 631 Bytes

Versions: 6

Compression:

Stored size: 631 Bytes

Contents

require "rubygems"
require "bundler/setup"
$:.unshift(File.expand_path('../../lib', __FILE__))
require 'dragonfly'
include Dragonfly::Serializer

APP = Dragonfly.app.configure do
  plugin :imagemagick
  datastore :memory
end

class Model
  extend Dragonfly::Model
  attr_accessor :image_uid, :image_name, :image_width, :small_image_uid
  dragonfly_accessor :image
  dragonfly_accessor :small_image
end

puts "Loaded stuff from dragonfly irbrc"
puts "\nAvailable sample images:\n"
puts Dir['samples/*']
puts "\nAvailable constants:\n"
puts "APP"
puts "\nModel:\n"
puts "dragonfly_accessor :image with image_name, image_width"
puts

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dragonfly-1.0.5 dev/irbrc.rb
dragonfly-1.0.4 dev/irbrc.rb
dragonfly-1.0.3 dev/irbrc.rb
dragonfly-1.0.2 dev/irbrc.rb
dragonfly-1.0.1 dev/irbrc.rb
dragonfly-1.0 dev/irbrc.rb