Emilio Tagua
418190d55c
Refactor inject use in hash conversions.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:03 -03:00
Emilio Tagua
8cfc6012f4
Perf: speed up 2 methods in railties.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:03 -03:00
Emilio Tagua
dc2f26ca38
Perf: refactor methods using inject when not need in activemodel.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:03 -03:00
Emilio Tagua
0876f39088
No need to use inject here.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:03 -03:00
Emilio Tagua
59296ab26d
Refactor routing methods.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:03 -03:00
Emilio Tagua
8c97f49f2e
Refactor decode_credentials to avoid inject and use map instead.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:03 -03:00
Emilio Tagua
6d8a6700a7
Perf: refactor _assign method to avoid inject and defining unneeded local var.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:03 -03:00
Emilio Tagua
10a63e2a0c
Refactor methods in html node to avoid injects.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:02 -03:00
Emilio Tagua
f6de806537
Refactor association_collection uniq method.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:02 -03:00
Emilio Tagua
2da809da37
No need to use inject here.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:02 -03:00
Emilio Tagua
ea35ccfe20
Perf: refactor method.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:02 -03:00
Emilio Tagua
0580f5a6ac
No need to use inject here, use map instead.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:02 -03:00
Emilio Tagua
4513cc142c
Goodbye inject, hello map.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:02 -03:00
Emilio Tagua
569be76ed6
Use map instead inject.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 18:08:02 -03:00
Santiago Pastorino
090c9ae3a3
Missing the mysql2 gem here
2010-09-22 14:33:44 -03:00
Neeraj Singh
48a108d55b
Error message should advice to use 'mysql2' gem.
...
If I create a new app using command
rails new demo -d mysql
then Gemfile contains 'mysql2' gem by default.
However if mysql gem is missing then error message says
raise "!!! Missing the mysql gem. Add it to your Gemfile: gem 'mysql', '2.8.1'"
[#5569 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-22 14:20:56 -03:00
Aaron Patterson
0cf45c850c
avoid a proc object
2010-09-22 09:01:11 -07:00
Aaron Patterson
fe8a307088
avoid creating a range object
2010-09-22 09:01:11 -07:00
Santiago Pastorino
b73d5e81ec
form_for with file_field docs fixed
2010-09-22 12:39:54 -03:00
Aaron Patterson
aa85a7a7e7
drying up construct_association
2010-09-21 21:01:48 -07:00
Aaron Patterson
8186c5736b
dry up some conditionals
2010-09-21 20:44:21 -07:00
Aaron Patterson
723adecab9
fixing case / when indentation
2010-09-21 20:38:36 -07:00
Aaron Patterson
9b1a4fda6f
fix case / when indentation
2010-09-21 20:32:11 -07:00
Aaron Patterson
27be777888
avoid a hash lookup
2010-09-21 20:32:00 -07:00
Aaron Patterson
e66bf6f5e3
remove more codes
2010-09-21 19:56:53 -07:00
Aaron Patterson
9b81ae6969
deleting more code
2010-09-21 19:41:15 -07:00
Aaron Patterson
8d6a6b250e
use each properly to avoid splatting a variable
2010-09-21 19:37:07 -07:00
Aaron Patterson
19ff42d909
deleting repeated codes
2010-09-21 19:27:23 -07:00
Aaron Patterson
79ef26c8c9
do not pass nil values to arel
2010-09-21 19:22:37 -07:00
Aaron Patterson
31eb765640
refacoring duplicate code. <3 <3 <3
2010-09-21 16:50:22 -07:00
Aaron Patterson
50041e563a
this reject can be replaced with compact
2010-09-21 15:25:09 -07:00
Aaron Patterson
fdd537e7f9
removing unused code
2010-09-21 15:25:09 -07:00
Aaron Patterson
d7877ffc30
remove some repeated code
2010-09-21 15:25:09 -07:00
Aaron Patterson
67a9ae6a66
break up giant method
2010-09-21 15:25:08 -07:00
Xavier Noria
a6aa6da5dd
api guidelines: adds Test::Unit and RSpec as examples of correct spelling, also advice when in doubt
2010-09-21 23:50:57 +02:00
Aaron Patterson
88b1d51f82
removing lolinject
2010-09-21 14:42:42 -07:00
Aaron Patterson
b7e4a97ab5
fixing tests. woo
2010-09-21 14:42:28 -07:00
Hemant Kumar
953d129bb2
remove join table rows before removing owner row for habtm associations, fixes#5674
2010-09-21 13:58:09 -07:00
Aaron Patterson
96bd936b64
providing arel with column information when possible [ #5392 state:resolved]
2010-09-21 13:53:47 -07:00
Xavier Noria
f4abe66d35
un-nodocs AR::Batches
2010-09-21 20:44:45 +02:00
Emilio Tagua
d64a09b443
Remove helper methods that were moved to helper.rb
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-21 15:18:12 +02:00
Emilio Tagua
ae24ce52ae
Move helper methods to helper.rb. Make test not depend on local TZ to pass or fail.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-21 15:07:43 +02:00
Piotr Sarnacki
07411ca490
List all of isolated engine changes
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-20 23:55:27 +02:00
Stevie Graham
83ecd03e7d
use instance_eval, reduce method calls.
...
execution time in seconds for `rake test_sqlite3`:
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
- before: 52.771426, 52.159505, 52.937056
- after: 51.452584, 51.897017, 51.584431
rubinius 1.0.1 (1.8.7 release 2010-06-03 JI) [x86_64-apple-darwin10.4.0]
- before: 284.334076
- after: 285.753028
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
- before: 75.811548, 75.533153, 75.353122
- after: 75.244243, 75.19226, 75.256925
2010-09-21 01:44:29 +08:00
Piotr Sarnacki
dfac9b1404
Strengthen documantation on engine's migrations and seed data
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-20 10:41:12 +02:00
Piotr Sarnacki
d475de7e25
Add helper for loading seed data for engine and application
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-20 10:41:05 +02:00
Santiago Pastorino
0523b55ab9
file_field propagates up multipart property even inside of fields_for
2010-09-20 01:11:55 -07:00
Thiago Pradi
800bab79b3
Updating error message on ruby_version_check.rb
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-19 22:32:23 -07:00
rohit
fd53bc85e7
Send 'rails runner' help message to stdout instead of stderr.
...
[#5661 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-09-19 16:45:29 -07:00
Santiago Pastorino
88a82bcb2d
application.js should be the last file on javascript_include_tag(:all)
2010-09-19 14:41:32 -07:00