Sha256: 73ad077282f1828457c595f59e1f3df3bbd7effce3c3f65dcc80ae620255ea0e

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

class BookDecorator < RDecorator::Base

  def reverse_title
    title.reverse
  end

  def upcased_title
    title.upcase
  end
  
  def link
    link_to title, "#{request.protocol}#{request.host_with_port}/assets/sample.png"
  end

  def cover_image
    image_tag 'cover.png'
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
r_decorator-0.0.7 spec/dummy/app/decorators/book_decorator.rb
r_decorator-0.0.6 spec/dummy/app/decorators/book_decorator.rb