Pratik Naik
07e41a8361
No need to set @arel_engine to nil twice. Committed by mistake in 3968825f
2010-01-16 23:17:14 +05:30
Pratik Naik
3968825f5f
Make sure Model#active_relation always adds STI conditions if needed
2010-01-16 23:11:35 +05:30
Pratik Naik
cfdfd89926
Use new finder methods for association preloading
2010-01-16 22:14:10 +05:30
Pratik Naik
f80be3ea0f
Use Relation#apply_finder_options from calculations
2010-01-16 22:05:01 +05:30
Pratik Naik
61e831564a
Add Relation#apply_finder_options for applying old finder options
2010-01-16 21:21:20 +05:30
Sam Granieri
488b4c8c5c
Make script/dbconsole work again [ #3690 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2010-01-16 20:55:22 +05:30
José Valim
92f49b5f1e
Split ActionDispatch http in smaller chunks.
2010-01-16 15:45:07 +01:00
Pratik Naik
5a52523a80
Rename active_relation_engine -> arel_engine and active_relation_table -> arel_table
2010-01-16 16:02:30 +05:30
Chris Hapgood
717a2941e1
Fix #microseconds conversion and #fast_string_to_time
...
* Use direct integer parsing in #fast_string_to_time to avoid convoluted
conversions and errors due to truncation.
* Use Float#round in #microseconds to avoid truncation errors.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2010-01-16 15:21:36 +13:00
Pratik Naik
81cd11259c
Remove protected method Class#scoped?
2010-01-16 04:38:16 +05:30
Pratik Naik
2d0bc08a7e
Make type_condition return Arel predicate and not a string condition
2010-01-16 04:21:18 +05:30
Pratik Naik
99dd107760
Remove unused default_select
2010-01-16 04:21:18 +05:30
José Valim
b3c87746ef
Move I18n to gemspec and update dependencies.
2010-01-15 23:48:38 +01:00
José Valim
5a5760828b
Add tests for simple match with namespace.
2010-01-15 23:36:03 +01:00
José Valim
13d76b6170
Add some implicit path tests to Subscriber.
2010-01-15 23:36:03 +01:00
Joshua Peek
b2578a148c
Fix singleton resource named routes
2010-01-15 16:31:00 -06:00
Pratik Naik
2ee130abec
Remove scope related code from construct_join
2010-01-16 03:51:10 +05:30
Joshua Peek
89082004b0
Fix const reference for SessionRestoreError
2010-01-15 16:20:12 -06:00
Joshua Peek
6437eb9f35
Always join scoped paths with slashes
2010-01-15 16:13:01 -06:00
Joshua Peek
576b8dda52
Cleanup internal resource macro to use method helper shorthand
2010-01-15 16:13:01 -06:00
Pratik Naik
21ce8eac9b
Remove stale construct_* methods
2010-01-16 03:37:04 +05:30
Pratik Naik
951e485b88
Remove construct_conditions
2010-01-16 02:56:13 +05:30
Pratik Naik
6c997c3c39
Simplify Model.delete_all
2010-01-16 02:38:19 +05:30
Pratik Naik
c5f3811a49
Model.delete should just use scoped.delete
2010-01-16 02:35:53 +05:30
Joshua Peek
184ef28f55
Routing method shorthand shouldn't clobber :to options
2010-01-15 14:55:13 -06:00
Joshua Peek
ead93c5be5
Move Flash into middleware
2010-01-15 14:55:13 -06:00
Pratik Naik
3da29f647b
Remove AR#scope() method
2010-01-16 01:42:01 +05:30
Joshua Peek
3eaf525213
Make HEAD method masquerade as GET so requests are routed correctly
2010-01-15 12:38:50 -06:00
Pratik Naik
43a84a054f
Fix the query matching in SubscriberTest
2010-01-16 00:02:46 +05:30
Pratik Naik
bed9179aa1
Make scopes use relations under the hood
2010-01-16 00:02:46 +05:30
José Valim
1c30ec23fe
In heterogeneous collections, neither the @path nor the @template are available, so we need to tell that we are simply rendering a collection.
2010-01-15 17:43:45 +01:00
José Valim
a0cdfdc771
Allow f.submit to be localized per object.
2010-01-15 16:10:19 +01:00
José Valim
e5a2a9fced
Remove URI object from ActiveResource notification, send the :mailer class in AM (like in AP#process_action) and remove locale instrumentation.
2010-01-15 15:57:33 +01:00
José Valim
4598d88749
Ensure log is flushed and tailed on failures.
2010-01-15 14:16:52 +01:00
José Valim
5252f5c1c9
Bundle automatically if --dev or --edge is given as option.
2010-01-15 13:39:56 +01:00
José Valim
c905fce35f
Add message_id to AM payload and don't send bcc and cc if they were not sent.
2010-01-15 13:17:56 +01:00
José Valim
a5a9156b4e
Template rendering should include layout time.
2010-01-15 12:24:32 +01:00
José Valim
6487d2871c
Fix an issue where log was not being tailed in the first request.
2010-01-15 12:24:31 +01:00
José Valim
88dd60298e
Do not send the whole controller in notifications, cherry pick required pieces.
2010-01-15 12:24:31 +01:00
José Valim
704daad762
Ensure we just send Ruby Stdlib objects in ActionMailer notifications.
2010-01-15 12:24:31 +01:00
José Valim
6932f6751e
ActiveRecord should give the connection id as payload, and not the whole connection.
2010-01-15 12:24:31 +01:00
José Valim
7f4d8e3fbd
Yield the payload notifications for further modification (like adding the result).
2010-01-15 12:24:31 +01:00
José Valim
b0994be5bd
LogTailer should be invoked after all logs in threads were flushed.
2010-01-15 12:24:31 +01:00
José Valim
b4019d5080
Rails::Subscriber is now responsible for flushing all loggers it's responsible for.
2010-01-15 12:24:31 +01:00
José Valim
8b9bff9557
Small tweaks in ActionController subscriber messages format.
2010-01-15 12:24:31 +01:00
José Valim
8c8942ed4f
Move Dispatcher setup to Railties and add instrumentation hook.
2010-01-15 12:24:30 +01:00
Joshua Peek
5a8e7287c5
Set a good example, no system ignores in project ignore file
2010-01-13 20:26:01 -06:00
Joshua Peek
be968ecd8b
Respect resources_path_names and :path_names options in new dsl
2010-01-13 20:26:01 -06:00
Joshua Peek
0f51e45307
optimise_named_routes is unnecessary
2010-01-13 20:22:53 -06:00
José Valim
9038a4af35
Add documentation to f.submit and make scaffold generators use the new shortcut.
2010-01-14 02:02:07 +01:00