Sha256: 8ec5738240de6059549248a9ae6f1f4010a0d4af13edd61cca39c0211fa3d1a9

Contents?: true

Size: 339 Bytes

Versions: 12

Compression:

Stored size: 339 Bytes

Contents

class PhotoCustomError < ActiveRecord::Base
  set_table_name :photo_dbs
  acts_as_fleximage do
    image_directory 'public/uploads'
    validates_image_size '2x2'
    missing_image_message "needs to be attached"
    invalid_image_message "seems to be broken"
    image_too_small_message "must be bigger (min. size: {{minimum}})"
  end
end

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
tvdeyen-fleximage-1.0.9 test/rails_root/app/models/photo_custom_error.rb
tvdeyen-fleximage-1.0.8 test/rails_root/app/models/photo_custom_error.rb
tvdeyen-fleximage-1.0.7 test/rails_root/app/models/photo_custom_error.rb
robinboening-fleximage-1.0.6 test/rails_root/app/models/photo_custom_error.rb
robinboening-fleximage-1.0.4 test/rails_root/app/models/photo_custom_error.rb
tvdeyen-fleximage-1.0.5 test/rails_root/app/models/photo_custom_error.rb
fleximage-1.0.4 test/rails_root/app/models/photo_custom_error.rb
dougmcbride-fleximage-1.0.3 test/rails_root/app/models/photo_custom_error.rb
fleximage-1.0.3 test/rails_root/app/models/photo_custom_error.rb
fleximage-1.0.2 test/rails_root/app/models/photo_custom_error.rb
fleximage-1.0.1 test/rails_root/app/models/photo_custom_error.rb
fleximage-1.0.0 test/rails_root/app/models/photo_custom_error.rb