trailblazer / roar-rails

Use Roar's representers in Rails.
http://roar.apotomo.de
MIT License
235 stars 62 forks source link

JSON-API: has_one before a links {} block crashed #107

Closed apotonick closed 9 years ago

apotonick commented 9 years ago
has_one :composer
links do
  property :album_id, :as => :album
  collection :musician_ids, :as => :musicians
end

Fix it, Nick.

kurtisnelson commented 9 years ago

:+1:

apotonick commented 9 years ago

Fixed in Roar 1.0.1. Note to upgrade representable to 2.1.4. https://github.com/apotonick/roar/blob/master/CHANGES.markdown#101