active_model_serializers icon indicating copy to clipboard operation
active_model_serializers copied to clipboard

ActiveModel::Serializer implementation and Rails hooks

Results 120 active_model_serializers issues
Sort by recently updated
recently updated
newest added
trafficstars

#### Expected behavior vs actual behavior Given a model with an attribute that is treated as a hash of options, I'm expecting AMS to deserialize the JSON payload so I...

sometimes we want certain attributes only to be rendered if they are true or if they are not nil https://github.com/krtschmr/active_model_serializers/commit/92341750417d44016742c0b15ea085797f1dc778 anybody has ambitions to help me, implement this into a...

#### Expected behavior vs actual behavior expected the following to work: ```ruby class SnapshotSerializer < BaseSerializer type do # semi-code if object.poly? object.poly_relation_type else object.type end end attributes :name, :description...

#### Expected vs Actual Behavior I have a model say `User` that I would like to present in two representations say a `UserSerializer` and `ProfileSerializer`. My serializers are defined as...

V: 0.10.x
S: Needs Submitter Response
C: Question
C: Performance: Caching

I'm super confused. I think I'm encountering some kind of bug. Could use some help. I had passing specs (passed dozens of times on local and CI server), but then...

React and Redux or Flux are becoming very popular. I'm working on a couple projects now that have Recat+Redux frontends. Certain JSON schemas are more easily integrated into Redux than...

So I'm running into an issue currently with serializing nested sets, using the [Awesome_nested_set](https://github.com/collectiveidea/awesome_nested_set) gem. I want to get a Category, and serialize it, all of its children, and their...

C: Deep Nesting

#### Expected behavior vs actual behavior Changing a serializer-level cache key with the `key option` does not change the cache key. #### Steps to reproduce With a basic controller class...

V: 0.10.x
S: Needs Bug Verification

I have a Rails 5 (or 4) application and I need a good tag system. - **First question**: is **acts-as-taggable-on** still a good choice? This is my code: class User...

#### Expected behavior vs actual behavior I know this is a breaking change. However, I'm unable to replicate what I could do previously and despite a number of pull requests...

V: 0.8.x
C: Legacy Adapter
C: Upgrading