Sha256: fae8e9a4fe7f01dff4ff6dea270bf9882498d4f5baf6f05b219375e14f6092da

Contents?: true

Size: 539 Bytes

Versions: 2

Compression:

Stored size: 539 Bytes

Contents

=begin

  This model is used to test:

    - Dragonfly Attachments
    - Paperclip Attachments

=end

class Asset < ActiveRecord::Base

  ##
  # Validations
  #

  validates :caption, :presence => true

  ##
  # Dragonfly Stuff
  #

  image_accessor :dragonfly
  image_accessor :dragonfly_required
  validates :dragonfly_required, :presence => true

  ##
  # Paperclip Stuff
  #

  has_attached_file :paperclip, :styles => { :medium => "300x300>", :thumb => "100x100>" }

  ##
  # Instance Methods
  #

  def original_file_name
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
typus-3.0.8 test/fixtures/rails_app/app/models/asset.rb
typus-3.0.7 test/fixtures/rails_app/app/models/asset.rb