Sha256: 57bc9ef627bda3eed6d19dcefe327c592bd753ced228075da3ce5405991fec97

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

=begin

  This model is used to test:

    - Dragonfly Attachments
    - Paperclip Attachments

=end

class Asset < ActiveRecord::Base

  ##
  # 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.10 test/fixtures/rails_app/app/models/asset.rb
typus-3.0.9 test/fixtures/rails_app/app/models/asset.rb