Prem Sichanugrist
733bfa63f5
Remove `#among?` from Active Support
...
After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now.
It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
2011-04-13 20:25:28 +08:00
David Heinemeier Hansson
d1575ae1b9
Change Object#either? to Object#among? -- thanks to @jamesarosen for the suggestion!
2011-04-12 00:23:07 +02:00
Prem Sichanugrist
a9f3c9da01
Using Object#in? and Object#either? in various places
...
There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
2011-04-11 03:17:09 +08:00
rohit
95a8f252c0
remove executable permission from files that don't need it. [ #4802 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-20 00:50:48 +02:00
José Valim
afc1026986
Still copy application configuration to generator even if they are required earlier. Also tidy up the guide a little bit.
2010-06-02 08:45:33 +02:00
Prem Sichanugrist
af22c5b16a
Add missing -h/--help flag to several rails command [ #3909 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 08:08:16 +01:00
José Valim
17ea8d8d4d
Automatically configure generators if application is defined.
2010-01-29 17:51:06 +01:00
José Valim
3022ce4f72
No more hacks to ensure generators are executed inside Rails.root.
2010-01-07 21:24:50 +01:00
José Valim
51fe6d05e7
Refactor generators a little bit.
...
Signed-off-by: Yehuda Katz <wycats@mobile-166-129-219-135.mycingular.net>
2009-11-08 18:41:44 -08:00
José Valim
d627c932bd
Pass config.generators options along when RAILS_GENERATORS is set and show --force-plural message just once.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-11-03 18:22:05 -08:00
Joshua Peek
7635c9f4c0
script/generate should require environment
2009-10-16 19:33:24 -05:00
Joshua Peek
d859402696
Use Rails.initialize! where we just want to run the initializers and aren't concerned about the config
2009-10-16 18:58:35 -05:00
Carl Lerche
97296b11e2
Have config/application.rb contain the application definition and require that file instead of config/boot.rb or config/environment.rb in script/*.
2009-10-15 14:54:12 -07:00
Yehuda Katz + Carl Lerche
f0dd77c6be
Move railties/lib/* into railties/lib/*
2009-09-24 16:11:41 -07:00