test/dummy/app/representers/singer_alias_representer.rb in roar-rails-0.1.5 vs test/dummy/app/representers/singer_alias_representer.rb in roar-rails-0.1.6
- old
+ new
@@ -1,6 +1,6 @@
module SingerAliasRepresenter
include Roar::Representer::JSON
- property :name, :from => :alias
+ property :name, :as => :alias
end