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

collection with cache true serializes the first object #10

Open
arturictus opened this issue Sep 14, 2016 · 0 comments
Open

collection with cache true serializes the first object #10

arturictus opened this issue Sep 14, 2016 · 0 comments
Labels
Milestone

Comments

@arturictus
Copy link
Owner

arturictus commented Sep 14, 2016

caching

collection :weather_observations, key: :weather_observation, serializer: WeatherObservationSerializer, cache: true

output:

{:weather_observation=>[{:high=>"26", :low=>"13", :icon=>"partlycloudy"}, {:high=>"26", :low=>"13", :icon=>"partlycloudy"}, {:high=>"26", :low=>"13", :icon=>"partlycloudy"}]}

Not caching:

The correct data

collection :weather_observations, key: :weather_observation, serializer: WeatherObservationSerializer

output:

{:weather_observation=>[{:high=>"26", :low=>"13", :icon=>"partlycloudy"}, {:high=>"26", :low=>"14", :icon=>"partlycloudy"}, {:high=>"24", :low=>"14", :icon=>"chancerain"}]}
@arturictus arturictus added the bug label Sep 14, 2016
@arturictus arturictus added this to the 0.1.4 milestone Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant