Sha256: 38c62241b75c7514b9f2d66673995934cf3a58f94d6637b517154dcd8eaaad4e

Contents?: true

Size: 231 Bytes

Versions: 2

Compression:

Stored size: 231 Bytes

Contents

class AuthorDecorator < RDecorator::Base

  def name_link
    link_to origin.name, author_path(origin), :id => origin.name
  end
  
  def reverse_name
    name.reverse
  end

  def capitalized_name
    name.capitalize
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

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