Neeraj Singh
198bffe3be
updating documentation for named_scope and default_scope
2010-08-12 17:39:52 +02:00
Neeraj Singh
06af291346
adding more documentation for autosave option
2010-08-12 17:39:05 +02:00
José Valim
30ea923040
Make update_attribute behave as in Rails 2.3 and document the behavior intrinsic to its implementation.
2010-08-12 12:06:57 -03:00
Mark Turner
7325dd21b3
fixed indentation in test cases
...
Signed-off-by: wycats <wycats@gmail.com >
2010-08-11 23:56:11 -07:00
Paul Hieromnimon
1c970b8394
Raising exception if fixture file can't be found
2010-08-11 15:45:29 -07:00
Aaron Patterson
c8509d5303
subtracting blank strings is slightly faster than blank?
2010-08-11 15:44:54 -07:00
Aaron Patterson
ff760dd6ce
avoid multiple hash lookups
2010-08-11 14:59:47 -07:00
Aaron Patterson
5352a89d50
dry up the hash dup and avoid sending nil values
2010-08-11 14:45:07 -07:00
Aaron Patterson
a56ee4c9a2
avoiding tap saves us time
2010-08-11 11:43:27 -07:00
Aaron Patterson
dac2b37b03
unless Array#empty? is faster than if Array#present?
2010-08-11 11:28:13 -07:00
Aaron Patterson
8464ee0650
stop using private methods
2010-08-11 11:24:59 -07:00
Brian Lopez
2d681838c0
move mysql2 adapter into core
2010-08-09 15:30:06 -07:00
Brian Lopez
b02751c961
ignore this test for mysql2
2010-08-09 15:29:59 -07:00
Brian Lopez
3ccf3504d2
skip the before_type_cast_on_datetime test entirely for mysql2
2010-08-09 15:29:53 -07:00
Brian Lopez
a263a8ffd5
update tests for mysql2 support
2010-08-09 15:29:26 -07:00
Xavier Noria
efb2bd0409
adds missing requires for Object#try
2010-08-09 15:14:00 +02:00
Aaron Patterson
91930dc30b
reduce the number of times current_connection_id is called in with_connection()
2010-08-06 16:38:53 -07:00
Aaron Patterson
001a574785
test to ensure that respond_to? delegates to arel
2010-08-06 15:23:11 -07:00
Aaron Patterson
a897a1f4a3
sorry AR, my privates are none of your business
2010-08-06 14:52:33 -07:00
Aaron Patterson
8fb0c9f509
do not rely on arel class structure
2010-08-06 11:31:32 -07:00
Aaron Patterson
0a86cb5972
fixing whitespace errors
2010-08-05 08:15:07 -07:00
Aaron Patterson
05a49c7718
avoid passing lists of lists to the group clause
2010-08-04 16:24:29 -07:00
Xavier Noria
902d732617
Merge remote branch 'docrails/master' into 3-0-stable
2010-08-05 01:15:08 +02:00
Xavier Noria
d191db76e0
standarizes the use of the article "an" for "SQL" and "SQLite"
2010-08-05 01:09:09 +02:00
Aaron Patterson
ba9602b9e7
call to_a since we are not passing anything to all()
2010-08-04 14:22:20 -07:00
Aaron Patterson
906ef233e4
fisting indentation
2010-08-04 14:11:20 -07:00
Aaron Patterson
f316a851dd
do not pass AR objects to ARel
2010-08-04 08:44:35 -07:00
wycats
2498cdaf14
I'm unsure how cloning was working in Rails 3 before
2010-08-04 04:05:28 -07:00
Aaron Patterson
9269e55b1f
avoid passing AR::Base objects to Arel when we can
2010-08-03 17:57:59 -07:00
RainerBlessing
8b7219b9d6
query value is converted to_s instead of to_yaml
2010-08-03 14:55:15 -07:00
wycats
7a1bba4799
Allow :name to be a Symbol (was this removed by accident?)
2010-08-03 12:22:10 -07:00
Neeraj Singh
db1c484c55
Dynamic finder method like scoped_by_* create methods so that
...
method_missing is not hit next time. Adding a test for this
scenario.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-03 10:46:09 +02:00
Neeraj Singh
807239f5a1
Making Active Record base_test.rb thinner by moving tests
...
to relevant files.
Number of assertions before refactoring:
2391 tests, 7579 assertions, 0 failures, 0 errors
Number of assertions after refactoring:
2391 tests, 7579 assertions, 0 failures, 0 errors
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-03 10:45:54 +02:00
Neeraj Singh
74f7e172c7
fixing documentation
2010-08-03 04:14:14 -04:00
Xavier Noria
4dc2521028
Merge remote branch 'docrails/master' into 3-0-stable
2010-08-03 02:15:12 +02:00
Neeraj Singh
db0e3e5ad1
Correcting the documentation which wrongly states that each dynamic finder creates
...
method on the class. Only dynamic finders using <tt>scoped_by_*</tt> creates new
methods.
2010-08-02 13:10:32 -04:00
Neeraj Singh
d3eacf9352
Adding to AR::Base documentation about dynamically scopeded_by query
...
User.scoped_by_user_name('David')
2010-08-02 13:07:18 -04:00
Neeraj Singh
1ce40ca562
ensuring that description does not exceed 100 columns
2010-08-02 12:25:26 -04:00
José Valim
9effe3cc18
Remove duplicated logic.
2010-08-02 17:20:17 +02:00
Neeraj Singh
009aa8825b
Eager loading an association should not change the count of children
...
[#4971 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-02 17:12:59 +02:00
Neeraj Singh
b8d9d9ce0a
updating documentation to ensure line does not exceed 100 columns
2010-08-02 11:09:31 -04:00
José Valim
e1344bf504
Tidy up previous commit.
2010-08-02 16:51:08 +02:00
Robert Pankowecki
f8b53f35b9
test and fix collection_singular_ids= with string primary keys [ #5125 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-02 16:41:20 +02:00
José Valim
b613c3cc7b
Add an internal (private API) after_touch callback. [ #5271 state:resolved]
2010-08-02 16:16:46 +02:00
Jakub Kuźma
311ea94f73
added failing touch propagation test
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-02 15:56:49 +02:00
Neeraj Singh
b29c23a618
ensuring that documentation does not exceed 100 columns
2010-08-01 21:32:36 -04:00
Neeraj Singh
6ac9482905
ensuring that documentation does not exceed 100 columns
2010-07-31 07:12:29 -04:00
Neeraj Singh
69b401220c
adding the missing closing tag
2010-07-31 07:04:08 -04:00
Neeraj Singh
4f63294b0f
fixing documentation just a little bit
2010-07-31 06:55:33 -04:00
Xavier Noria
3d7099891f
Merge remote branch 'rails/master'
2010-07-31 11:55:24 +02:00