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

Add DSL for glueing attributes #95

Open
kuon opened this issue Oct 1, 2014 · 0 comments
Open

Add DSL for glueing attributes #95

kuon opened this issue Oct 1, 2014 · 0 comments
Labels

Comments

@kuon
Copy link

kuon commented Oct 1, 2014

In RABL you can "glue" attributes, for example:

glue(:foo) do
    attribute :jon => :doe
end

would be the same as:

expose :doe do |entity,opts|
    entity.foo.jon
end

It would be nice to be able to do that in a shorter way.

@dblock dblock added the feature label Oct 2, 2014
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

2 participants