Aaron Patterson
4be0fc124a
use a map and flatten to avoid << calls on array
2010-10-20 16:20:49 -07:00
Aaron Patterson
784177aeee
only call column_methods_hash once, use array math for faster test of existence
2010-10-20 16:17:15 -07:00
Aaron Patterson
7f444a3db6
roll up weird method to meta programmed method
2010-10-20 15:51:44 -07:00
Aaron Patterson
fb835fc1e2
use zip + Hash.[] rather than looping with an index
2010-10-20 15:46:04 -07:00
Aaron Patterson
954bd126ec
extract options is not necessary
2010-10-20 15:07:17 -07:00
Aaron Patterson
03d4b86e78
removing unused variable
2010-10-20 14:58:16 -07:00
Aaron Patterson
96e8e97e78
removing unused variables
2010-10-20 09:38:15 -07:00
Jan
21beedf1ff
default scope merge where clauses [ #5488 state:resolved]
2010-10-20 09:00:36 -07:00
Aaron Patterson
dbc5d2694f
reduce duplicate where removal to one loop
2010-10-20 08:41:25 -07:00
Santiago Pastorino
d3d724bb88
Remove this require since active_support/testing/default doesn't exist anymore
2010-10-20 12:50:31 -02:00
Aaron Patterson
8c511c0b3c
swap out some n^2 for some n
2010-10-19 20:53:53 -07:00
Aaron Patterson
4726a181c4
bumping mysql2 requirement
2010-10-19 17:53:00 -07:00
Aaron Patterson
8d5829f149
dup rather than create so many arrays
2010-10-19 17:51:46 -07:00
Aaron Patterson
dc16163d06
use array math rather than looping through the array
2010-10-19 17:46:54 -07:00
Aaron Patterson
c56fea2be4
use shortened version to generate a sql literal
2010-10-19 17:44:33 -07:00
Aaron Patterson
08636527b5
avoid cloning if we do not need to clone
2010-10-19 17:44:07 -07:00
Aaron Patterson
78b6f64105
avoid creating a proc object when possible
2010-10-19 17:37:55 -07:00
Aaron Patterson
d2898d4ef8
scopes can take an object that responds to call
2010-10-19 17:29:25 -07:00
Aaron Patterson
56be4c897a
avoid creating the proc object if possible
2010-10-19 17:29:25 -07:00
Santiago Pastorino
17d196a18e
Change mysql2 to the gem version again since 0.2.5 was released
2010-10-19 21:42:54 -02:00
Aaron Patterson
e68f339aae
default scope can accept any object that responds to #call
2010-10-19 15:07:44 -07:00
Tim Morgan
b1b26af9a2
Allow default_scope to accept a Proc.
2010-10-19 14:43:31 -07:00
Xavier Noria
d619b9d1d1
Merge branch 'master' of git://github.com/lifo/docrails
2010-10-19 23:07:29 +02:00
Xavier Noria
95d87823d4
rewords a little the RDoc of the tag helper
2010-10-19 22:59:03 +02:00
Xavier Noria
ba1fb51fa5
api guidelines: adds a reference to the RDoc documentation where directives like :method: are covered
2010-10-19 22:45:51 +02:00
Anil Wadghule
d7799fadf9
Fix SQLite adapter name [ #5842 state:resolved]
2010-10-19 10:44:59 -07:00
Aaron Patterson
1856e975c3
"instance_methods" includes public and protected
2010-10-19 08:30:45 -07:00
Richard Hart
e43de58ab4
Updating routing namespace examples to use symbols and not strings.
2010-10-19 13:40:47 +01:00
Xavier Noria
de3603c255
adds the new :data idiom in tag helpers to the CHANGELOG
2010-10-19 10:13:26 +02:00
Stephen Celis & Xavier Noria
cfcef34bb5
Additional documentation for data-* attributes.
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-10-19 10:12:27 +02:00
Michał Łomnicki
4120e95dce
Use ALTER INDEX syntax to rename an index
2010-10-19 08:40:28 +08:00
Aaron Patterson
541ed2b60d
avoid a few comparisons
2010-10-18 16:11:27 -07:00
Krekoten' Marjan
a75d21df06
Fix status initialization when custom status provided
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-10-18 17:34:22 -02:00
Krekoten' Marjan
608bf7b72c
AC::Caching DRYup
...
Remove ActionController::Caching::Pages#caching_allowed
because it duplicates ActionController::Caching#caching_allowed?
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-10-18 17:30:28 -02:00
Aaron Patterson
19c144f1b3
remove strange else block
2010-10-18 10:31:21 -07:00
Aaron Patterson
ca59ec354e
skip extra work if no text or phrase was provided
2010-10-18 10:28:56 -07:00
Aaron Patterson
dda81cb177
lets not invert the hash on every iteration through this loop
2010-10-18 10:21:15 -07:00
Aaron Patterson
132f3e2d37
use -= in place of the expanded form
2010-10-18 10:11:32 -07:00
Aaron Patterson
a0a5a2a275
implicitly return nil if there is no number
2010-10-18 10:01:26 -07:00
Aaron Patterson
98d3c41cfb
implicit return of nil
2010-10-18 09:58:18 -07:00
Aaron Patterson
9c219bf361
use regex escape sequences to shorten stuff up
2010-10-18 09:57:24 -07:00
Aaron Patterson
081e15f104
join strings rather than resizing buffer
2010-10-18 09:53:01 -07:00
Santiago Pastorino
330327eeec
Call html_escape in ERB::Util module and don't mix it in in the helpers
2010-10-18 13:59:56 -02:00
Xavier Noria
df044ec4ac
explains why ERB::Util#h is removed before being re-aliased
2010-10-18 17:24:30 +02:00
Santiago Pastorino
9d6917519c
Use mysql2 from git for a while
2010-10-18 13:02:10 -02:00
Santiago Pastorino
901973b4d7
Invoke html_escape on the proper receiver
2010-10-18 12:29:03 -02:00
Santiago Pastorino
460c4efd71
Merge CHANGELOGs from 3-0-stable
2010-10-18 12:24:41 -02:00
Santiago Pastorino
31ac1db596
Tidy up a bit this code
2010-10-18 09:49:04 -02:00
Santiago Pastorino
1a0f72d0e3
Why strip only the extension, this can be done by the user
2010-10-18 09:48:24 -02:00
Santiago Pastorino
dfb3ff6698
This or login doesn't make sense
2010-10-18 09:47:21 -02:00