Commit Graph

21653 Commits

Author SHA1 Message Date
Xavier Noria
b878757c50 removes assert_select_rjs 2011-04-13 13:23:16 +02:00
Xavier Noria
8449da929e removes support for RJS in link_to_function 2011-04-13 13:23:16 +02:00
Xavier Noria
096fa1b60f jQuery is the new default 2011-04-13 13:23:16 +02:00
Matt Duncan
805126b20a Aligning comments 2011-04-13 16:14:53 +08:00
Matt Duncan
93def19063 Fixing distance_of_time_in_words range near 2 days 2011-04-13 16:14:52 +08:00
Joshua Peek
f004c88681 Merge branch 'sprockets' 2011-04-12 22:35:24 -05:00
Aaron Patterson
1b5b53da5e common @jonleighton 💣 2011-04-12 20:29:35 -07:00
Joshua Peek
a4518517f7 Index sprockets environment if perform caching is enabled 2011-04-12 22:12:27 -05:00
Joshua Peek
ed24595647 Merge branch 'master' into sprockets 2011-04-12 21:56:00 -05:00
Jon Leighton
f0e198bfa1 Deprecate defining scopes with a callable (lambda, proc, etc) via the scope class method. Just define a class method yourself instead. 2011-04-12 19:46:05 -07:00
Jon Leighton
788bd30859 ActiveRecord::Base.scopes hash is not needed 2011-04-12 19:46:04 -07:00
Jon Leighton
8572ae6671 Evaluate default scopes at the last possible moment in order to avoid problems with default scopes getting included into other scopes and then being unable to remove the default part via unscoped. 2011-04-12 19:46:04 -07:00
Jon Leighton
5740d4ec0c Deprecated support for passing hashes and relations to default_scope, in favour of defining a 'default_scope' class method in the model. See the CHANGELOG for more details. 2011-04-12 19:46:04 -07:00
Jon Leighton
fc9a04b6a6 Removing the scope-caching which happens on association proxies, because the query is already cached by the query cacher. For formalised proof see http://www.youtube.com/watch?v=wDefXLb-FDs 2011-04-12 19:46:04 -07:00
Sebastian Martinez
a616e7a88c Update test name to the corresponding method name
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-04-12 21:04:00 -03:00
Xavier Noria
3366479a9a Merge branch 'master' of git://github.com/lifo/docrails 2011-04-12 22:45:33 +02:00
Sebastian Martinez
40d156955c Update guides reflecting that scaffold_controller generator generates now code for JSON response instead of XML 2011-04-11 22:43:27 -03:00
Sebastian Martinez
7a1189a2c7 Updated AS guide with new Object#in? and Object#either? methods 2011-04-11 20:09:22 -03:00
Aaron Patterson
b53ffb35e0 stop using deprecated methods in arel 2011-04-11 15:50:05 -07:00
Xavier Noria
3f283c2dd5 Revert "Edited railties/guides/source/active_support_core_extensions.textile via GitHub"
Reason: The original sentence is correct. Please note the guide
covers the stable version of Active Support.

This reverts commit 5265650d51713a883e6cacde8f6faf52708abc1b.
2011-04-12 00:37:02 +02: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
Aaron Patterson
5918b868b2 remove so many nested if statements 2011-04-11 15:19:10 -07:00
Aaron Patterson
622f23b604 wrap the pg_get_serial_sequence function and reuse it for the default sequence name 2011-04-11 14:38:42 -07:00
Oge Nnadi
5265650d51 Edited railties/guides/source/active_support_core_extensions.textile via GitHub 2011-04-11 14:26:23 -07:00
Aaron Patterson
75dc9fbac7 cache table exists queries in prepared statement cache 2011-04-11 14:12:31 -07:00
Aaron Patterson
f6c0c8ff61 only use the primary_key method, refactor schema and table name parsing 2011-04-11 14:08:27 -07:00
Aaron Patterson
a9e8554b46 use prepared statements for primary key queries 2011-04-11 13:57:00 -07:00
Aaron Patterson
5df072d64b last insert id can never be called, so remove that code path 2011-04-11 13:10:20 -07:00
Oge Nnadi
d5634b2287 Added missing </tt> 2011-04-11 13:08:58 -07:00
Oge Nnadi
d3dce774ef Edited README.rdoc via GitHub 2011-04-11 12:57:52 -07:00
Oge Nnadi
a43abfafd2 Rewording 2011-04-11 12:54:46 -07:00
Aaron Patterson
9ba94c8fc4 we know the table and pk, so we can calculate a default sequence name 2011-04-11 10:54:08 -07:00
Aaron Patterson
cbb65de1a6 always look up pk and sequence unless both are provided 2011-04-11 10:37:23 -07:00
Aaron Patterson
302b6f3f73 pg does not know the insert_id in advance, so super will never return true 2011-04-11 10:31:13 -07:00
Aaron Patterson
4c30304e15 updating the docco for ActiveRecord::Result 2011-04-11 10:10:01 -07:00
Aaron Patterson
269cd1b3c5 implement exec_query on mysql2 adapter 2011-04-11 10:10:01 -07:00
Aaron Patterson
8a11799a47 make sqlite insert_sql more consistent with other adapters 2011-04-11 10:10:01 -07:00
Aaron Patterson
58259bbf29 adding exec_insert for postgresql 2011-04-11 10:10:01 -07:00
Aaron Patterson
b1ba04b32b fixing variable name in mysql test 2011-04-11 10:10:01 -07:00
Aaron Patterson
90a371496a properly name schema queries for the logger 2011-04-11 10:10:01 -07:00
Aaron Patterson
3d96e6217b adding mysql adapter test case 2011-04-11 10:10:00 -07:00
Aaron Patterson
0845b5062d adding client_encoding method for discovering the encoding set for this client, testing exec_insert on a string 2011-04-11 10:10:00 -07:00
Aaron Patterson
f9d3f01866 properly name schema queries for logging 2011-04-11 10:10:00 -07:00
Aaron Patterson
32dbf00d99 adding exec_insert to sqlite3 2011-04-11 10:10:00 -07:00
Aaron Patterson
c4fc396300 adding a case_sensitive_modifier for forcing comparisons to be case sensitive 2011-04-11 10:02:39 -07:00
Aaron Patterson
35b2715456 only support pg >= 8.2, so no need to check 2011-04-11 09:08:45 -07:00
José Valim
7379114c2f Remove code duplication. 2011-04-11 18:01:10 +02:00
José Valim
df5691aa94 No need to rescue here. Invoking the wrong method in an object can happen anywhere if you are not careful. In other words, test your shit. 2011-04-11 17:47:59 +02:00
José Valim
5bf3d46bec Revert "Add :use_include option to allow user to explicitly use Range#include? method in Ruby 1.9"
Use :with => range.to_a instead.

This reverts commit f6540211b5b9133c9f93c11655a04d613c237e67.
2011-04-11 17:41:33 +02:00
David Heinemeier Hansson
b93199b547 Keep the same API semantics for update/delete as we had for XML (just return 200 OK, no body) 2011-04-11 15:50:05 +02:00