app/models/post/file_methods.rb
# If the image resolution is too low and the user is privileged or below, force the
# image to pending.  If the user has too many pending posts, raise an error.
#
# We have to do this here, so on creation it's done after set_image_dimensions so
# we know the size.  If we do it in another module the order of operations is unclear.
If the image resolution is too low and the user is privileged or below, force the
image to pending.  If the user has too many pending posts, raise an error.

We have to do this here, so on creation it's done after set_image_dimensions so
we know the size.  If we do it in another module the order of operations is unclear.
If the image resolution is too low and the user is privileged or below force the image to pending . If the user has too many pending posts raise an error . We have to do this here so on creation it ' s done after set_image_dimensions so we know the size . If we do it in another module the order of operations is unclear .
def image_is_too_small
    return false if CONFIG["min_mpixels"].nil?
    return false if width.nil?
    return false if width * height >= CONFIG["min_mpixels"]
    true
  end
def image_is_too_small return false if CONFIG [ "min_mpixels" ] . nil? return false if width . nil? return false if width * height >= CONFIG [ "min_mpixels" ] true end
If the image resolution is too low and the user is privileged or below, force the
image to pending.
If the image resolution is too low and the user is privileged or below force the image to pending .