Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed Mar 15, 2020
1 parent b0184f1 commit 7cb2d35
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tramway-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ Rails.application.config.assets.precompile += %w( *.jpg *.png *.js )
```
# Usage
## Decorators
### Delegating attributes

*app/decorators/\*_decorator.rb*
```ruby
class *Decorator < Tramway::Core::ApplicationDecorator
delegate_attributes :title, :something_else, :another_atttribute
end
```

### Helper methods

#### date_view
Expand Down

0 comments on commit 7cb2d35

Please sign in to comment.