Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Update to 1.9 syntax for hashes #313
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
kytrinyx
Nov 12, 2012
Contributor
Should we also add a section that describes the old-school hash syntax and explain that you can have non-symbol keys?
Should we also add a section that describes the old-school hash syntax and explain that you can have non-symbol keys? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
That's probably a good idea. |
steveklabnik
closed this
in
d3e9b42
Nov 12, 2012
steveklabnik
reopened this
Nov 12, 2012
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
steveklabnik
Nov 12, 2012
Contributor
This isn't truly done yet, because we need to change all the existing code to the new style too.
This isn't truly done yet, because we need to change all the existing code to the new style too. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
Got it :) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment Hide comment
kytrinyx
Nov 14, 2012
Contributor
@steveklabnik What about active record validations? The rails guides use the old-school hash syntax
@steveklabnik What about active record validations? The rails guides use the old-school hash syntax |
steveklabnik commentedNov 12, 2012
Rails especially is now using 1.9 everywhere as of Rails 4, so we should convert over at some point. Especially since we introduce hashes after symbols.