class HomeController < ApplicationController
  def show
    offset = (Asciicast.featured.count * rand).to_i
    @asciicast  = Asciicast.featured.offset(offset).first || @asciicasts.first
  end
end

class HomeController < ApplicationController
  def show
    offset = (Asciicast.featured.count * rand).to_i
    asciicast = Asciicast.featured.offset(offset).first || @asciicasts.first
    @asciicast = AsciicastDecorator.new(asciicast)
  end
end

Use decorator for asciicast on homepage
Use decorator for asciicast on homepage
