Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. enum status: { stale: 0, new: 1, converted: 2 }
  2.  
  3. You tried to define an enum named "status" on the model "Lead", but this will generate a class method "new", which is already defined by Active Record.
  4.  
  5. enum status: [ :stale, :new, :converted ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement