Sha256: ff66023edbaacd9dd98769ef46c92b5e921bb0a8944b5c3ab8dc57ba1ab5b797

Contents?: true

Size: 643 Bytes

Versions: 7

Compression:

Stored size: 643 Bytes

Contents

# RDecorator

A readable and simple view helper for Rails 3.

## Usage
    class Person < ActiveRecord::Base
      def say
         "Hey!"
      end
    end
    
    class PersonDecorator < RDecorator::Base
      def say
         origin.say * 3
      end
    end

    person = Person.new
    person.say # == "Hey!"
    person.decorated.say # == "Hey!Hey!Hey!"

## Notice
+ Most code of lib/rdecorator/view_context.rb and rspec files was copied from https://github.com/amatsuda/active_decorator.
  Copyright (c) 2011 Akira Matsuda under MIT-LICENSE.
  
+ lig/generators/* was copied from https://github.com/drapergem/draper under MIT-LICENSE.

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
r_decorator-0.0.7 README.md
r_decorator-0.0.6 README.md
r_decorator-0.0.5 README.md
r_decorator-0.0.4 README.md
r_decorator-0.0.3 README.md
r_decorator-0.0.2 README.md
r_decorator-0.0.1 README.md