Sha256: f58b845bb87da22cb5842b97cb082848da03534acfd8673438966be5de77a199

Contents?: true

Size: 150 Bytes

Versions: 4

Compression:

Stored size: 150 Bytes

Contents

class Image < ActiveRecord::Base
  has_attached_file :file, styles: {medium: '300x300>', thumb: '100x100>'}
  validates_attachment_presence :file
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_admin-0.6.4 spec/dummy_app/app/active_record/image.rb
rails_admin-0.6.3 spec/dummy_app/app/active_record/image.rb
rails_admin-0.6.2 spec/dummy_app/app/active_record/image.rb
rails_admin-0.6.1 spec/dummy_app/app/active_record/image.rb