app/models/post/file_methods.rb
# Returns true if the post has a sample image, and we're going to use it.
Returns true if the post has a sample image, and we're going to use it.
Returns true if the post has a sample image and we ' re going to use it .
def use_sample?(user = nil)
    if user && !user.show_samples?
      false
    else
      CONFIG["image_samples"] && has_sample?
    end
  end
def use_sample? ( user = nil ) if user && ! user . show_samples? false else CONFIG [ "image_samples" ] && has_sample? end end
Returns true if the post has a sample image, and we're going to use it.
Returns true if the post has a sample image and we ' re going to use it .
user