class Tweet < ActiveRecord::Base

  def self.published
    where(published: true)
  end

  mount_uploader :image, ImageUploader

end

class Tweet < ActiveRecord::Base
  default_scope order("created_at desc")

  mount_uploader :image, ImageUploader

  def self.published
    where(published: true)
  end
end

Order pictures by date descending
Order pictures by date descending
