test/dummy/app/representers/band_representer.rb in roar-rails-0.1.6 vs test/dummy/app/representers/band_representer.rb in roar-rails-1.0.0
- old
+ new
@@ -1,7 +1,7 @@
class BandRepresenter < Roar::Decorator
- include Roar::Representer::JSON
- include Roar::Representer::Feature::Hypermedia
+ include Roar::JSON
+ include Roar::Hypermedia
property :name
link :self do
band_url(represented.name)