Advertisement
Guest User

Untitled

a guest
Oct 8th, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. I have a model Environment with attributes id, name, something
  2.  
  3. I want in json a list of drivers as such: ["tst", "stg", "prod"]
  4.  
  5. collection Environment.all, :root => false, :object_root => false
  6. attributes :name
  7.  
  8. Yields: [{"name":"tst"},{"name":"stg"},{"name":"prod"}]
  9.  
  10.  
  11. How do I fix this?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement