Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Enumerations and other types should accept arrays or hashes #11

Open
sw17ch opened this issue Dec 30, 2012 · 0 comments
Open

Enumerations and other types should accept arrays or hashes #11

sw17ch opened this issue Dec 30, 2012 · 0 comments

Comments

@sw17ch
Copy link
Owner

sw17ch commented Dec 30, 2012

Enumerations should be one-line-able

enumeration(:some_name, :a, ;b, :c, :d, :e)

... should be the same as ...

enumeration(:some_name) do |e|
  e.value :a
  e.value :b
  e.value :c
  e.value :d
  e.value :e
end

This should also be valid:

enumeration(:some_name, a: 1, b: 2, c: 100, d: 900)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant