Ryan Bigg
ee646788fc
Indent code example for :as option
2010-11-07 12:17:36 +10:00
Ryan Bigg
7d83673134
Document the :as option for the scope method
2010-11-07 12:11:39 +10:00
Ryan Bigg
ffe97e338e
Space between module option documentation and path documentation
2010-11-07 12:09:58 +10:00
Ryan Bigg
4a6150a3eb
Fix indentation on comment for :path option
2010-11-07 12:09:38 +10:00
Ryan Bigg
6ca042b3e4
Document the :as option for the namespace method
2010-11-07 12:07:41 +10:00
Ryan Bigg
66d1276d7f
Document the :module option for namespace
2010-11-07 12:05:55 +10:00
Ryan Bigg
0eef4e3bfb
Document the :path option for namespace
2010-11-07 12:05:14 +10:00
Ryan Bigg
379939e1e0
Begin to document the namespace method for AD's Mapper
2010-11-07 12:04:25 +10:00
Ryan Bigg
e5eece41b5
Document the controller method for AD's Mapper
2010-11-07 11:49:57 +10:00
Ryan Bigg
5f7f3adccd
Document the defaults method
2010-11-07 11:39:57 +10:00
Ryan Bigg
5040ecbfea
Document the :module and :path options for the scope method.
2010-11-07 11:39:55 +10:00
Ryan Bigg
35c7ca5c37
Separate comments and examples with "Examples" header.
2010-11-07 11:39:53 +10:00
Ryan Bigg
433e1aca86
Fix where the documentation says "photos", but the example shows "posts" or "comments" by switching both to simply "posts"
2010-11-07 11:39:50 +10:00
Ryan Bigg
203e45cd7f
Add further documentation + examples for the get, post, put and delete methods in ActionDispatch::Routing::Mapper::HttpHelpers
2010-11-07 11:39:27 +10:00
Xavier Noria
3cf85fb4fc
Merge branch 'master' of git://github.com/lifo/docrails
2010-10-30 23:28:16 +02:00
Aaron Patterson
296467fcc4
only returning where values for the corresponding relation, also filtering where value hash based on table name [ #5234 state:resolved] [ #5184 state:resolved]
2010-10-30 13:25:49 -07:00
Aaron Patterson
cbca12f908
adding tests for #5234 and #5184 . Tests were from Akira Matsuda. Thanks Akira!
2010-10-30 13:20:54 -07:00
Aaron Patterson
7d5762d2c2
no need to merge where values if no new where values have been added
2010-10-30 12:28:49 -07:00
Aaron Patterson
2b48e47654
ruby-debug19 does not work with 1.9.3, so I am removing it
2010-10-30 11:30:08 -07:00
Denis Odorcic
cc9742920c
Convert :primary_key in association to a string before comparing to column names, so that for example :primary_key => :another_pk works as well [ #5605 state:resolved]
2010-10-30 11:24:36 -07:00
Aaron Patterson
67a3a70295
refactoring find_join_association
2010-10-30 08:45:40 -07:00
Ernie Miller
0bb85ed9ff
Fix issues when including the same association multiple times and mixing joins/includes together.
2010-10-30 06:48:44 -07:00
Jon Leighton
b82fab25f9
Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc with just a single scope hash (created on initialization of the proxy). This is now used consistently across all associations. Therefore, all you have to do to ensure finding/counting etc is done correctly is implement the scope correctly.
2010-10-30 06:30:00 -07:00
Aaron Patterson
2a47e7ef10
only do string substitution on column names once, remove intermediate data structures
2010-10-30 06:16:54 -07:00
Aaron Patterson
2e07260f36
columns are always strings
2010-10-30 06:12:50 -07:00
Aaron Patterson
6cf44a1bd6
no need to to_i, sqlite does that for us
2010-10-30 06:11:06 -07:00
snusnu
973b908777
Added missing AS require to active_model/naming.rb
...
We saw a failing spec when running the DataMapper
ActiveModel compliance specs for dm-active_model.
ActiveModel::Naming#model_name
relies on the Module#parents method defined in
active_support/core_ext/module/introspection.rb
Adding the appropriate require statement of course
fixed our specs.
2010-10-30 00:20:31 +08:00
Aditya Sanghi
3ca1665038
reverting last change to javascript helper; needs more investigation
2010-10-29 10:13:48 +05:30
Aditya Sanghi
74f3f74b6e
fixed javascript helper doc to close issue #10 raised by jialin
2010-10-29 10:01:43 +05:30
Aaron Patterson
6a3d6b7f13
select_all() should always return an array, so no need to test
2010-10-27 14:39:24 -07:00
Aaron Patterson
f6ddb3553a
fisting test name
2010-10-27 14:33:02 -07:00
Aaron Patterson
9ce0211806
speeding up query cache
2010-10-27 14:23:01 -07:00
Aaron Patterson
7104122cc3
making query cache work with prepared statements
2010-10-27 14:05:40 -07:00
Andrew White
47ceb135c6
Ensure that Rails.env is defined first
2010-10-27 10:30:14 +01:00
Aaron Patterson
e73b0b84d9
renaming bind_values to binds where it makes sense
2010-10-26 13:44:11 -07:00
Aaron Patterson
104d0b263e
adding backwards compatibility for non-prepare statement handling drivers
2010-10-26 13:44:11 -07:00
Aaron Patterson
fca229e205
caching column values
2010-10-26 13:44:11 -07:00
Aaron Patterson
02128d628c
setting the authorized session clears the statement cache
2010-10-26 13:44:11 -07:00
Aaron Patterson
9d9aed433b
add a session authorization setter to the pg connection
2010-10-26 13:44:11 -07:00
Aaron Patterson
1741bbe2d5
avoiding statement cache if there are no bind values
2010-10-26 13:44:10 -07:00
Aaron Patterson
28a18b5988
folding async_exec to exec
2010-10-26 13:44:10 -07:00
Aaron Patterson
03e4ea5290
clear cache before resetting the connection
2010-10-26 13:44:10 -07:00
Aaron Patterson
1b4e0b6542
prepare the statement before we cache the key
2010-10-26 13:44:10 -07:00
Aaron Patterson
43bbb25ddd
bind substitution is working properly
2010-10-26 13:44:10 -07:00
Aaron Patterson
9d46e0d012
bind parameters are now typecast
2010-10-26 13:44:10 -07:00
Aaron Patterson
e2813479f9
basic bind parameters are working
2010-10-26 13:44:09 -07:00
Aaron Patterson
ffb999125a
initial exec() method is working in pg adapter
2010-10-26 13:44:09 -07:00
Aaron Patterson
eb83eb6c98
monkey patching with enumerable so we can call each
2010-10-26 13:44:09 -07:00
Aaron Patterson
fe2ee4fafd
monkey patching Mysql::Stmt, calling free on the metadata
2010-10-26 13:44:09 -07:00
Aaron Patterson
ee959a9ca1
free the result after slurping
2010-10-26 13:44:09 -07:00