fix rails plugin new CamelCasedName bug #3696

merged 2 commits into from Nov 19, 2011


None yet

2 participants

lest commented Nov 19, 2011

refs #3684

@josevalim josevalim commented on an outdated diff Nov 19, 2011
def name
- @name ||= File.basename(destination_root)
+ unless @name
josevalim Nov 19, 2011 Member

Awesome. However, could you please use the @name ||= begin ... end style instead of unless @name. The former gives no warnings about instance variables not being initializer while the latter does, thanks!

lest commented Nov 19, 2011

@josevalim, fixed

@josevalim josevalim merged commit 43158e5 into rails:master Nov 19, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment