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

Transformers array should be able to include class references #49

Open
boardfish opened this issue Apr 20, 2021 · 0 comments
Open

Transformers array should be able to include class references #49

boardfish opened this issue Apr 20, 2021 · 0 comments

Comments

@boardfish
Copy link
Owner

The transform config option is similar to Active Record Validations in that it looks up transformers based on the symbols you pass it. But if transformers come bundled with Remote Record classes, there's not too much use putting them into some global namespace unless they really need to be.

The aim would be for us to be able to do this:

remote_record do |c|
  c.transform [:snake_case, 'DotParamsTransformer']
end

module DotParamsTransformer
  ...
end
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