module Rrant::Helper

Public Instance Methods

bill() click to toggle source
# File lib/rrant/helper.rb, line 11
def bill
  {
    'text'          => '80 rants should be enough.',
    'image'         => "#{files_path}/bill.jpg",
    'score'         => 80,
    'user_username' => 'Bill'
  }
end
files_path() click to toggle source
# File lib/rrant/helper.rb, line 7
def files_path
  File.expand_path('../../files/', File.dirname(__FILE__))
end
image_blank?(rant) click to toggle source
# File lib/rrant/helper.rb, line 3
def image_blank?(rant)
  rant['attached_image'].nil? || rant['attached_image'] == ''
end