Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to AMS 0.10 #1

Open
brenes opened this issue Feb 24, 2016 · 0 comments
Open

Update to AMS 0.10 #1

brenes opened this issue Feb 24, 2016 · 0 comments

Comments

@brenes
Copy link
Member

brenes commented Feb 24, 2016

Update to the current version of AMS (0.10.0.rc4 right now)

brenes added a commit that referenced this issue Feb 24, 2016
Right now it returns JSON information for a not nested has_many relationship, although it doesn't respect the fields being serialized from the serializer
brenes added a commit that referenced this issue Feb 24, 2016
If the atttribute is detected as translated through globalize we include the current translation and query the translation table
brenes added a commit that referenced this issue Feb 24, 2016
We change the override method so we can do something like `ActiveModel::SerializableResource.new(Country.all, each_serializer: CountrySerializer).to_json`

This way we can serialize a collection or a resource with a has_many
brenes added a commit that referenced this issue Feb 24, 2016
Right now we are building the query BUT it's not being correctly stored so it's later processed by AREL.

Main reason is that AREL, after performing a join doesn't store that join, but if we assign it then is no longer an Arel::Table...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant