Skip to content

Full compatibility for AMS(ActiveModel::Serializers) #399

@okuramasafumi

Description

@okuramasafumi

Is your feature request related to a problem? Please describe.

While Alba supports many DSLs alike AMS, it's not fully compatible with it, preventing users of AMS to migrate to Alba.

Describe the solution you'd like

Full compatibility for AMS.

require 'alba/ams'

# Now it works without the actual AMS!
class  FooSerializer < ActiveModel::Serializers
  attribute :id, :name
end

Describe alternatives you've considered

Some convert script, but I guess it's way harder than implementing compatibility layer.

Additional context

https://rubygems.org/gems/active_model_serializers
AMS has been installed more than 100,000,000 times.
I'd love to provide the opportunity for them to migrate to much faster and simpler alternative, Alba!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions